Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upload Status Bar???

Status
Not open for further replies.

nat1967

Technical User
Feb 13, 2001
287
US
Hi everyone,

I have looked all over PHP.net and other sites but cant seem to find a way to show a "status" bar for file uploads. I would like to be able to show the progress of a file upload (10% complete, 50% complete, etc...) so the user doesnt think the site has timed out. the files will be under 1.5 meg but that still takes enough time to give the impression the website has timed out.

anyone have any suggestions on where to look or anyone have an example?

Thanks in Advance for your help.

Have A Great Day!!!, [bigglasses]

Nathan
Software Testing Lead
 
Upload? You mean uploading to the server?

I don't know of any way to show a status bar during an upload. At least not in PHP.

HTTP operates as a series of requests from the browser and responses from the server. When you're uploading files, the uploaded data is part of the browser request. The server cannot send data back in a response until the browser's request is finished.

You might try asking this question in the JavaScript forum.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
perhaps you can frequently check how many kilobytes are already uploaded and compare it with the original filesize. but I don't know how you can find out the original filesize from the file that's uploaded
 
Followup to my original post:

i decided to use a seperate "pop up" window. when the original form is submitted, the pop window states "Please Wait while your file is uploaded...". When the upload completes, I close the pop up window.

so after facing the wall, i found a way around the wall. :)



Have A Great Day!!!, [bigglasses]

Nathan
Software Testing Lead
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top