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

I use upload() function of CGI in a cgi script of apache to upload files frome users and it works very fine.
But is there a way with upload() or another way to display some feed back to user?

Thank you in advance
Pierre Couderc

Replies are listed 'Best First'.
Re: Feed back in CGI::Upload
by Corion (Patriarch) on Mar 10, 2006 at 08:06 UTC
Re: Feed back in CGI::Upload
by fluffyvoidwarrior (Monk) on Mar 10, 2006 at 16:05 UTC
    I haven't spent much time looking into CGI::Upload but it seems its a wrapper for cgi.pm type module. When CGI.pm is receiving an upload it spools the incoming data to a temporary file which you can access through a call to tmpFileName(). You may be able to use this to check on upload progress ie bytes uploaded so far using a timed javascript perhaps running in a frame to query the server periodically and give progress feedback.
Re: Feed back in CGI::Upload
by pcouderc (Monk) on Mar 10, 2006 at 17:29 UTC
    Thank you for your answers.
    And thank you to make me discover "SuperSearch"