[uClinux-dev] cgihtml & boa & file upload

Armenta, Robert (STRT) RARMENTA at trak.com
Thu Aug 3 08:40:40 EDT 2006


I have boa & cgihtml implemented on the uCDimm.  Everything seems to be
working; however, when I upload a file the
system crashes.  I this a kernel problem or a boa problem?  When I test
this on my Redhat box everything works fine.  Differences are boa ver
0.94 and cgihtml 1.69

Version Info:
Kernel 2.4.27
boa 0.93
cgihtml 1.66

What I am doing:
I have an index.html file to call the example test.cgi program in
user/cgihtml/examples
  <FORM METHOD=POST ENCTYPE="multipart/form-data"
ACTION="./cgi-bin/test.cgi">
         File to upload: <INPUT TYPE=FILE NAME="upfile"><BR>
                   <INPUT TYPE=SUBMIT VALUE="Submit">
   </FORM>
The symptoms are:
I browse to a file the I created "myfile.txt" which simply contains
Hello World.
Click the submit button and the first time test.cgi web page get served
up, but the file is not uploaded.
If I browse back and submit again the system crashes.

I was successful in getting the boa logs to work.  It seems that you
need to define BOA_TIME_LOG.  I chose to put it in defines.h just under
server root.  The only error I get is "cgihtml cannot upload file" which
is the result of a NULL FILE pointer at line 278 of cgi-lib.c in
user/cgihtml.

When the system crashes I don't have a log since the boa logs are in
ramfs.

Thanks,
Robert Armenta


******************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege.  If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager.  Please do not copy it for any purpose, or disclose its contents to any other person.  The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.  The recipient should check this e-mail and any attachments for the presence of viruses.  The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
******************************************


More information about the uClinux-dev mailing list