Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hey, Monks... I have a web page I'm building that allows users to upload files. Unfortunately, some of these files can be quite large and handling it via a basic post makes it appear that the browser is hanging or, worse yet, the connection eventually times out. This obviously isn't ideal or desired behavior. So, what I'd like to do is create an interim status page that shows "File Uploading," "Uploading file 6/10," "Uploading this.file.ext" or some such similar message. I thought I knew how to do this, but am not having much luck. As well, I haven't been able to find a good example of this anywhere online. Google had a few leads that looked promising, but none of them really panned out in as convenient a fashion as I'd hoped for.

Might any of you have suggestions, links, etc. that might clarify how to best address this "interim page" question? Also, is that going to help with the time-out problem or does that need to be handled separately? Any and all suggestions are appreciated! FWIW, I'm running Apache 2 w/ mod_perl. Thanks...

  • Comment on Interim Page Delivery While Uploading Files

Replies are listed 'Best First'.
Re: Interim Page Delivery While Uploading Files
by THuG (Beadle) on Sep 02, 2004 at 19:15 UTC

    I haven't look at how it is doing it, but the open source Gallery project does what you want while uploading, cataloging, sizing, and generating thumbnails of pictures. It uses PHP and not Perl, but I'm sure once you figure out the HTTP mechanics you could apply them.

      Found one... http://www.raditha.com/megaupload/perl.php It's not particularly well written but it got me all the pieces I needed. Thanks for the suggestion, though, Thug.