|
|
| We don't bite newbies here... much | |
| PerlMonks |
Yet another file-upload question (using LPW--->CGI)by dani++ (Sexton) |
| on Jul 17, 2002 at 05:38 UTC ( [id://182364]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.dani++ has asked for the wisdom of the Perl Monks concerning the following question:
I have read many nodes regarding file upload. I use 'strict' as much as possible. I thought that there would be no problem integrating LWP on the client side and CGI on the server side but this does not seem to be the case. I am using a call like this on the client:
And on the server side: Strangely, if I use 'form-data/multipart' all variables except the file are read perfectly on the server side, on the other hand if I use 'multipart/form-data' (which is what it should be) all sorts of erroneous variables are read. With the first option as encoding, all vars are read, but 0 bytes of the file are returned after the bucle. The file is created but with zero size. I have browsed the perlmonks archives and tutorials as well as done some obvious google querys, now I am lost and I am thinking on doing the parsing by hand on the server (ugh). Thanks in advance.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||