Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
when i call the upload.cgi get a 500 internal error<FORM ACTION="http://....etc/upload.cgi" METHOD="post" ENCTYPE="multipart/form-data"> File to upload: <INPUT TYPE="file" NAME="data"> Your email address: <INPUT TYPE=text" NAME="email_address"; <INPUT TYPE="submit" NAME="Submit" VALUE="Submit Form"> </FORM>
Any suggesstion to why this works on localhost but not on the main web? Thanksuse CGI; open (TEST, ">data_file"); $query = new CGI; $in_file=$query->param("data"); open (FHtest, "<$in_file"); while (<FHtest>) { print TEST $_; } print $query->header ( ); print <<end_TEST; <html><head><title>Checking Details</title> </head> other stuff </html> end_TEST
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi upload files
by gellyfish (Monsignor) on Jun 17, 2005 at 09:28 UTC | |
by Joost (Canon) on Jun 17, 2005 at 15:40 UTC | |
|
Re: cgi upload files
by kprasanna_79 (Hermit) on Jun 17, 2005 at 09:42 UTC | |
by Anonymous Monk on Jun 17, 2005 at 10:04 UTC | |
|
Re: cgi upload files
by dorward (Curate) on Jun 17, 2005 at 09:19 UTC |