Syntactic Confectionery Delight | |
PerlMonks |
File Uploadby rsiedl (Friar) |
on Jul 13, 2004 at 19:34 UTC ( [id://374115]=perlquestion: print w/replies, xml ) | Need Help?? |
rsiedl has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I'm having some trouble uploading a file from a web page form. The form submits and creates the file, but the file is 0 bytes. I'm using Perl 5.8.4, CGI and Apache2 on FC1. The same script was working with Perl 5.6, CGI and Apache1 on RH7.2... Here's my code: Anyone have any ideas? Cheers, Reagen Note I have replaced the instance of attachfile with filename Update I have just found I am getting "read() on unopened filehandle at line..." (the line where it reads) in the apache log. Solution I found the solution. I had my upload script in a sub and this is how i was calling it: When i removed the "s from the sub line it worked. dont know why.
Back to
Seekers of Perl Wisdom
|
|