|
|
http upload with Graphical feedback
|
|
|
|
Dedicated MacNNer
Join Date: May 2000
Location: Oregon
Status:
Offline
|
|
Hello..
I am currently running a CGI script (PSUpload) that allows our clients to upload files to a web directory, instead of having them fuss with an FTP client.
it's working great for the most part...where we run into problems is when they are uploading large files (30-70 megs). there is no feedback to the user in terms of progress..Many times they think the upload has stalled and quit their browser..
I am wondering if someone might have a solution..Anything that will give the user some status about the upload.
Any thoughts?
Thanks!
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status:
Offline
|
|
Unfortunately, it's not something you could do with either server-side scripting or client-side javascript. It's something the user-agent should do, but noone seems to have implemented this in any browser I've used.
The easiest (but lamest) way is to put a dialog box up with a time estimate - 30min for 56K, 8min for DSL, etc...
|
Computer thez nohhh...
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status:
Offline
|
|
Not true.
This problem is easily solved--we have a nice implementation in our product (NDA, DoD work sorry)
Why not just show them the bytes written so far?
|
signatures are a waste of bandwidth
especially ones with political tripe in them.
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status:
Offline
|
|
Originally posted by Kristoff:
Not true.
This problem is easily solved--we have a nice implementation in our product (NDA, DoD work sorry)
Why not just show them the bytes written so far?
You mean, you could tell us but you'd have to kill us after?
How would you be able to get a value for bytes written so far? Doesn't the server process the upload once you've submitted the information, before returning a response?
|
Computer thez nohhh...
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status:
Offline
|
|
Originally posted by Simon Mundy:
You mean, you could tell us but you'd have to kill us after?
How would you be able to get a value for bytes written so far? Doesn't the server process the upload once you've submitted the information, before returning a response?
Well, the http server is writing the file to disk as it receives it.
If you are sufficiently clever, you will find a way to get a handle on the file that is being written. Then, pop-up another window that GETs the url of a servlet (or script--whatever)--with a meta refresh of a certain frequency--that checks the file size on the server and displays it back.
|
signatures are a waste of bandwidth
especially ones with political tripe in them.
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Sep 2000
Status:
Offline
|
|
There is no *efficient* way to do it, but as stated above, it can be done.
I've seen it done with shockwave as well... though that has it's limitations as well.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|