quote:
at the moment when the client selects a file and hits the upload button, the browser hangs until the file is fully transferred and only then does the next page display notifying the client that the transfer was successful - is there anyway of giving a progress report will a file is uploading
Unfortunately the
Progress Bar thread mentioned above doesn't appear to relate to CGI at all.
If the CGI's output (the new HTML page) doesn't change until the upload is complete, then you could use a server-side technology to display a notice saying "file upload in progress".
One option would be to use JavaScript.
(I know this might not be popular, it's just an option!)
You would use the onSubmit() handler attached to the submit button.
This could then, for example, turn on the visibilty of a layer with a notice saying "file upload in progress".
note: this method would not be able to calculate the progress of the file upload.
Here is a couple of links for more information,
script examples
tutorials
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.