Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > http upload with Graphical feedback

http upload with Graphical feedback
Thread Tools
Corys
Dedicated MacNNer
Join Date: May 2000
Location: Oregon
Status: Offline
Reply With Quote
Sep 30, 2002, 02:02 PM
 
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!
     
Simon Mundy
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Sep 30, 2002, 06:12 PM
 
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...
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Oct 2, 2002, 12:10 AM
 
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.
     
Simon Mundy
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Oct 4, 2002, 03:17 AM
 
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...
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Oct 7, 2002, 01:17 PM
 
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.
     
macvillage.net
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Oct 7, 2002, 01:24 PM
 
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 Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:09 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,