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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
More Uploads

 



jez
stranger

Nov 1, 2001, 4:05 AM

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

Please help with this upload dilema.
CGI.pm 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.

Thanks

Je\



yapp
User

Nov 2, 2001, 2:32 AM

Post #2 of 2 (750 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 CGI.pm 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