Print Page | Close Window

file upload progress bar

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=28053
Printed Date: 28 March 2026 at 12:37pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: file upload progress bar
Posted By: RCorr
Subject: file upload progress bar
Date Posted: 20 November 2009 at 5:12pm
Hello,

I would like to know how to implement a file upload progress status on a PHP and an ASP.NET web site to indicate that the page is communicating with the server.  This will give user an indication that the file upload is in progress and not to click away from the page because they may think the loading is too slow.

I have found some JavaScript progress bar examples, but it is independent to the time the page will render and may produce false indication.

If anyone knows of an excellent example I can easily implement onto my web site, please share.

Many thanks,

RCorr





Replies:
Posted By: dpyers
Date Posted: 20 November 2009 at 6:50pm
you don't indicate if you need it for an asp.net or for a php page.

PHP will give better results than javascript but will still be a bit off as it can't really touch the post data streaming in. The RAW_POST_DATA variable is only populated if it doesn't recognize the mime type but you need a valid mime type for file transfers to work. PHP will loose more accuracy on large files than on smaller ones.

Here's an article on an .NET control that will do what you need:
http://mattberseth.com/blog/2008/07/aspnet_file_upload_with_realti.html" rel="nofollow - http://mattberseth.com/blog/2008/07/aspnet_file_upload_with_realti.html

Perl would be another option which can touch the data stream.





-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net