|Perl Monk, Perl Meditation|
Hidden fields and a partial HTML downloadby dek (Initiate)
|on Apr 11, 2003 at 13:16 UTC||Need Help??|
dek has asked for the
wisdom of the Perl Monks concerning the following question:
And behold: PerlMagick, Apache, Hidden fields and a partial HTML download – what’s causing this error?
Hi everyone, here’s hoping someone has seen this problem before…
I’m developing an image library for an intranet using SuSE 8. Users can add images via an upload on a web page which talks to my ‘initialising script’. It simply prepares the image for storage by checking with a MySQL DB to see if the image name is in use, if not it asks image magick (Image::Magick) to create a thumbnail and get image information (size, colours etc) It puts the Thumbnail and the uploaded file into a temp directory and returns a page to the user for their confirmation before adding to the database and copying the image and thumb to it’s correct storage location – really sorry if this is long winded …
Within the html page the script returns are about 10 hidden fields with the data ready to go to the ‘add to db’ script should the user want to continue.
My problem is, these hidden fields are somehow stopping the confirmation page from downloading completely. It usually stops somewhere between the first and last of the fields. I’ve testing using a variety of images too – and SOMETIMES it works fine even though the image is same type and size as another that failed!
The fields don’t contain much data either and I’ve checked for odd characters and so on. I tried just outputting the variables with a plain header and they work fine – when I add a form with hidden fields I get a server error with no feedback (even with –w and carp!) – Searches on the net and at SuSE have turned up nothing! I’m now thinking about a trip to the PC Warehouse for a copy of Red Hat.
Any help would be great.
Ps – what a great website this is!