Think about Loose Coupling | |
PerlMonks |
CGI::Application and start_multipart_form stumperby dmorgo (Pilgrim) |
on Dec 06, 2005 at 04:23 UTC ( [id://514320]=perlquestion: print w/replies, xml ) | Need Help?? |
dmorgo has asked for the wisdom of the Perl Monks concerning the following question:
Alas, my fellow travellers, an upload script with which young supplicants were to submit mp3 files of single hands clapping has stopped working after I installed Firefox 1.5 on Windows XP. The vexing thing is, it does work on a Windows 2000 machine with Firefox 1.5, just not on my Win XP machine.
Jokes about upgrading to Linux are appreciated here just as much as at any monastery, but unfortunately not just supplicants, but masses of aspiring supplicants will be using this and they could be running just about anything. I think this is a problem with run_mode in CGI::Application. Here's what the script is supposed to do, and what it does:
What it's supposed to do:
What it actually does: It only misbehaves like this when the filename field is populated, and only with Firefox 1.5 on Win XP. And the real (full) script that actually does something with the file behaves the same way. Apparently the run_mode (rm) parameter is getting cleared when there is a file uploaded. So instead of going to save_mode and storing the file to the disk, it acts as if it got no input at all, and goes to the default mode, list_mode in this case. Your most inferior servant has cut the code down to the minimum that reproduces this. Question is, what in this code could be leading to this issue? Also, if anyone suspects this is a Firefox 1.5 on Win XP bug, do you have any suggestions for how to search out the real truth on this deep matter? We have several large prayer wheels standing by, powered by Makita 9V cordless drills with extra batteries donated by the Mill Valley Green Gulch Zen Center, ready to make thousands of revolutions on your behalf in return for any wisdom you would be willing to bestow. Here's the wrapper code:
And with our most humble obiences, here's where most of the action is:
And here's a simple HTML::Template file being used for this test:
Back to
Seekers of Perl Wisdom
|
|