Gossamer Forum
Home : General : Perl Programming :

File Uploading

Quote Reply
File Uploading
This is my first time trying to upload a file. (Might be my last!) When I post the submitted information, I get a "Short Read" error from the cgi-lib library. Can someone tell me what causes that error and what I do to correct it?

Thanks for your help.

Lee
Quote Reply
Re: [Lee] File Uploading In reply to
Please don't use cgi-lib :)

http://www.perlfect.com/articles/upload.shtml
Quote Reply
Re: [Paul] File Uploading In reply to
I have never used the CGI.pm module (although from now on I will). My problem is this: I am adding the upload feature into an old script of mine which uses the cgi-lib library and is tightly woven throughout the LONG script. So, for this instance, I need to use the library. :(
Quote Reply
Re: [Paul] File Uploading In reply to
While that example does have some educational value, it is very insecure, because it basically allows you to upload any file to any directory on your webhost (where the webserver user has access to).

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] File Uploading In reply to
I suppose it was a bad example.

It was the first relevant article I found and I couldn't be bothered looking further as I have had a headache for mmm 8 days solid now Pirate. Time to visit Mr Doctor