469,587 Members | 2,693 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,587 developers. It's quick & easy.

File Upload Status

2
I've written a PERL program that allows a user to upload a file, but it waits until the file has been completely loaded before it displays that it is complete. I have determined the size, and can print out the status (ie. 4096 bytes at 3%), but it doesn't display it until the file has completely loaded.

Is there anyway (I'm sure there is) to open a Javascript window that updates each increment of the process?
Jan 22 '07 #1
4 1741
AricC
1,892 Expert 1GB
I've written a PERL program that allows a user to upload a file, but it waits until the file has been completely loaded before it displays that it is complete. I have determined the size, and can print out the status (ie. 4096 bytes at 3%), but it doesn't display it until the file has completely loaded.

Is there anyway (I'm sure there is) to open a Javascript window that updates each increment of the process?
You want to open a new window? Wouldn't that open a ton of windows? While the file is uploading why don't you display Please Wait... or something?

Aric
Jan 22 '07 #2
dfrew
2
You want to open a new window? Wouldn't that open a ton of windows? While the file is uploading why don't you display Please Wait... or something?

Aric
I need something to let the user know that the upload is proceeding. If I just put up a message, it could be stopped and the user would still only see the message. If it popped up a new window, I was thinking of having the window display a progress bar that was being updated, and then it would close itself when it was done.
Jan 22 '07 #3
acoder
16,027 Expert Mod 8TB
Here is a Perl script that may be what you need.
Jan 22 '07 #4
Samji
23
You want to open a new window? Wouldn't that open a ton of windows? While the file is uploading why don't you display Please Wait... or something?

Aric
I think dfrew means, the text in the same window would be updated every percentage increment.

E.g. "25% done" then "26% done" in the same window.

I don't know very much about perl, but if you can access it via JavaScript, you could print out to a new window with the document.write() method.
Jan 24 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Brian Henry | last post: by
reply views Thread by Benjamin Bittner | last post: by
6 posts views Thread by Marko Vuksanovic | last post: by
6 posts views Thread by Vic Spainhower | last post: by
2 posts views Thread by Amzul | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.