CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
More Uploads



Nov 1, 2001, 4:05 AM

Post #1 of 2 (1204 views)
More Uploads Can't Post

Please help with this upload dilema. is great!
but when using it to handle file uploads I get a strange situation.
It creates a 0Kb file on the server where it should be putting the uploaded file.
It did work OK, but then stopped working and i can't find the reason why.
My script didn't change, and as far as i know nothing changed on the server.
The error message from the perl log says that it can't read from an unopenned file handle (refering to the file handle for the file on the users local machine).
The server is IIS 5 . Any suggestions would be greatly appreciated as I am stumped on this, but know it should work.




Nov 2, 2001, 2:32 AM

Post #2 of 2 (1199 views)
Re: More Uploads [In reply to] Can't Post

I never tried anything with uploading. At home I have a Win 200 with IIS 5 testing server for my scripts, but never tried uploading.

Hoever, I've read something about uploading. The <FORM> tag however, has an encoding attribute.

application/x-www-form-urlencoded - Normal form
multipart/form-data - Form with upload fields,
like <FORM encoding="multipart/form-data"> ... </FORM>

The module has the $CGI::URL_ENCODED and $CGI::MULTIPART variables where these constants are stored in.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives