How to implement file upload progress bar on web?

后端 未结 7 934
深忆病人
深忆病人 2020-12-01 05:56

I would like display something more meaningful that animated gif while users upload file to my web application. What possibilities do I have?

Edit: I am using .

相关标签:
7条回答
  • 2020-12-01 06:09

    A good example of doing this without using Ajax is given at CodeProject by Nilesh Thakkar.

    0 讨论(0)
  • 2020-12-01 06:14

    jQuery UI Progressbar - http://jqueryui.com/demos/progressbar/

    0 讨论(0)
  • 2020-12-01 06:21

    Here are a couple of versions of what you're looking for for some common JavaScript toolkits.

    • Mootools - http://digitarald.de/project/fancyupload/
    • Extjs - http://extjs.com/learn/Extension:UploadForm
    0 讨论(0)
  • 2020-12-01 06:21

    Some good .NET-specific help for doing progress bars can be found in Dino Esposito's MSDN Magazine articles from last July and August:

    Context-Sensitive Feedback with AJAX (July '07)
    Canceling Server Tasks with ASP.NET AJAX (August '07)

    0 讨论(0)
  • 2020-12-01 06:25

    I've tried various techniques and had most success with SWFUpload.

    You create and interact with an SWFUpload object using Javascript, but uses a (hidden) Flash file for file selection, uploading and upload progress monitoring. You can specify a wide range of Javascript event handlers (uploadStarted, uploadProgress, uploadError etc.) that the Flash will call during the upload progress making it very flexible. It also implements a file queue, so it works well for single or multiple files.

    Links:

    • API documentation
    • Demos
    • Downloads
    0 讨论(0)
  • 2020-12-01 06:29

    ASP.NET File Upload with Real-Time Progress Bar

    http://mattberseth.com/blog/2008/07/aspnet_file_upload_with_realti_1.html

    0 讨论(0)
提交回复
热议问题