>>>>> "Peter" == Peter Scott <[EMAIL PROTECTED]> writes:
Peter> In article <[EMAIL PROTECTED]>, Peter> [EMAIL PROTECTED] (Randal L. Schwartz) writes: >>>>>>> "Martin" == Martin Lomas <[EMAIL PROTECTED]> writes: Martin> I'm writing a simple file upload script. I have all the form Martin> and file handling stuff done. I want the script to write an Martin> HTML message to the user browser before the upload begins, you Martin> know, like "Upload in progress". Then when the upload Martin> completes, I want to replace that screen with "Upload Martin> complete". >> >> Without relying on non-portable code, at best, you can respond to the >> form-submission that is carrying the file-upload field with an HTML >> response page that says "Upload complete". That's it. Peter> Um, there are some more complicated solutions that are server-side and Peter> sample Perl implementations as well. I believe you can find them Peter> documented at Peter> http://www.stonehenge.com/merlyn/LinuxMag/col39.html Peter> http://www.stonehenge.com/merlyn/WebTechniques/col20.html No, please read the original question a bit more carefully. Martin wants some sort of activity to occur as a result of the beginning and ending of a POST containing a file-upload. Since the browser starts the POST, and stays with it until the response message is complete, there's nothing that can be done server-side to "talk to" the browser from the moment the POST is started until the file is completely uploaded. Thanks for referring those other fine columns, but they don't do the job here. Wrong mission. print "Just another Perl hacker," -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]