Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - file upload progress bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedfile upload progress bar

 Post Reply Post Reply
Author
RCorr View Drop Down
Groupie
Groupie


Joined: 21 January 2003
Status: Offline
Points: 126
Direct Link To This Post Topic: file upload progress bar
    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


Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post 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

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




Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.