alienhuman has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I have a script (actually a home grown module) that I am in charge of maintaining. It's function is to take in some text from several text fields, and grab an image from an "image upload" field. The text/image is then slurped into an html template and published to a local website. Yawn.
However, the users are noticing some weird behavior that is very hard to replicate. The users cull articles from various places on the web, copy/paste them into the text fields and grab their images and upload them using the tool. The weird behavior is that certain articles will not submit properly. There seems to be no difference that I could see, and the spaghetti code that is the module is very hard to figure out (rather than giving a good error message, it merely dumps one out to the GUI again, as though nothing had happened).
Then I tried removing a paragraph at a time from an offending article and submitting it. After I'd removed about half the text, it submitted properly. This leads me to think that it has something to do with $CGI::POST_MAX, which is currently set to CGI.pm's default.
My question: does $CGI::POST_MAX include the bytes of the file being uploaded as well as the text (in otherwords, is the binary data included in the POST_MAX)? If so, it could explain why certain articles are problems and other seemingly similar articles are not--their images are not as large.
Much thanks,
Chris
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $CGI::POST_MAX question
by BazB (Priest) on Dec 14, 2001 at 23:46 UTC | |
|
Re: $CGI::POST_MAX question
by jerrygarciuh (Curate) on Dec 15, 2001 at 00:49 UTC | |
by alienhuman (Pilgrim) on Dec 15, 2001 at 00:59 UTC | |
|
Re: $CGI::POST_MAX question
by alienhuman (Pilgrim) on Dec 15, 2001 at 02:59 UTC | |
by crazyinsomniac (Prior) on Dec 15, 2001 at 03:10 UTC |