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!

In reply to Hidden fields and a partial HTML download by dek

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.