Re: Upload Progress
- --- In firstname.lastname@example.org, Agustinus Setijanto <agust.jkt@g...>
> The script will read the bytes received by the Unix server (using lslength of the file. Is this
> -l command combined with cut and grep) and compare it with the total
> possible? How do I open a second window using Perl script?Okay, now that I've REALLY READ your message... <blush>
While it's true that your uploading script won't receive control until
the file is uploaded, it's possible that you could run another window
which gets some information from the server on how the upload is
progressing. This depends on how the server handles temp files, so I
won't claim for a minute that this *will* work. The only way to create
could put a 'onSubmit' handler in the form, which opens a new window
running the other progress-monitoring script.
As I see it, the problem will be determining which file progress to
report. If you have two users uploading at the same time, you'll need
to do some very fancy coding to figure out which file is theirs IF the
server is using temporary filenames to represent the upload.
Therefore, I'll now admit that this is possible the way you've stated
it, but I still don't think it's worth the trouble. For upload scripts
static text saying, "When you press the OK button in this window, the
upload will start. It may take a long time. Please be patient."
Anything further is cute window-dressing, but probably more work than