Re: File won't upload
fREW Schmidt wrote: Hello all, I am having the weirdest problem and no one seems to have any idea what it is; so maybe you (the internet :-) will. Here is the problem: I am trying to upload a CSV and process it. I have some dummy code to just print the contents of the file to the log and nothing is working. Here is the code: my $uploadHandle = $Input-upload(File); while($uploadHandle) { warn $_; } On the same server I have very similar code and that *does* work. Furthermore the server does know the filename and firebug clearly shows the contents of the file getting sent to the server. Does anyone have any ideas of what could cause this? Guess what - those 3 lines of code won't upload anything. How about stripping your script down to the basics and change the URL/passwords to something generic and re-post so we have something to work with. We need complete scripts with warnings and strict turned on preferably. Run the script locally before posting and then cut-n-paste it into your email. Keep it small and complete and indicate how it fails exactly. ___ Perl-Win32-Web mailing list Perl-Win32-Web@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: File won't upload
Sorry about that. I am attaching a barebones version. I would much appreciate any help. -fREW On Tue, Sep 30, 2008 at 2:34 PM, Bill Luebkert [EMAIL PROTECTED]wrote: fREW Schmidt wrote: Hello all, I am having the weirdest problem and no one seems to have any idea what it is; so maybe you (the internet :-) will. Here is the problem: I am trying to upload a CSV and process it. I have some dummy code to just print the contents of the file to the log and nothing is working. Here is the code: my $uploadHandle = $Input-upload(File); while($uploadHandle) { warn $_; } On the same server I have very similar code and that *does* work. Furthermore the server does know the filename and firebug clearly shows the contents of the file getting sent to the server. Does anyone have any ideas of what could cause this? Guess what - those 3 lines of code won't upload anything. How about stripping your script down to the basics and change the URL/passwords to something generic and re-post so we have something to work with. We need complete scripts with warnings and strict turned on preferably. Run the script locally before posting and then cut-n-paste it into your email. Keep it small and complete and indicate how it fails exactly. sores.plx Description: Binary data ___ Perl-Win32-Web mailing list Perl-Win32-Web@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: File won't upload
fREW Schmidt wrote: I am having the weirdest problem and no one seems to have any idea what it is; so maybe you (the internet :-) will. Here is the problem: [...] Most probably, you have missed enctype=multipart/form-data in your form definition. It is most common error when somebody tries to process file upload without reading HTML specification first. http://www.w3.org/TR/html4/interact/forms.html#edef-FORM -- Serguei Trouchelle ___ Perl-Win32-Web mailing list Perl-Win32-Web@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: File won't upload
Well, I originally had that in there, but I took it out for troubleshooting, so I don't think that's the issue. -fREW On Tue, Sep 30, 2008 at 4:10 PM, Serguei Trouchelle [EMAIL PROTECTED]wrote: fREW Schmidt wrote: I am having the weirdest problem and no one seems to have any idea what it is; so maybe you (the internet :-) will. Here is the problem: [...] Most probably, you have missed enctype=multipart/form-data in your form definition. It is most common error when somebody tries to process file upload without reading HTML specification first. http://www.w3.org/TR/html4/interact/forms.html#edef-FORM -- Serguei Trouchelle ___ Perl-Win32-Web mailing list Perl-Win32-Web@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: File won't upload
Well, that certainly fixed the test case. When I add it to the real version it's still broken, but I presume that I can comb the differences of the two files and figure out the issue. Thanks for your help! -fREW On Tue, Sep 30, 2008 at 4:57 PM, Bill Luebkert [EMAIL PROTECTED]wrote: fREW Schmidt wrote: Well, I originally had that in there, but I took it out for troubleshooting, so I don't think that's the issue. You'd be wrong then. You have to have the multi-part encoding. ___ Perl-Win32-Web mailing list Perl-Win32-Web@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs