About file upload download and other progress bar implementation

Source: Internet
Author: User

Now my upload, download, or a batch of progress of progress bar implementation ideas are like this:

Define a custom class that lists the total quantity, the number of finishes (there is a need to determine the success and failure of the decision)

Then, when the link is accessed, the session is stored in a custom class, and the custom class is stored with the initialization information. and perform the action

When the link is accessed asynchronously Ajax gets the current progress, gets the custom class in session, the timer AJAX achieves the real-time update progress effect.

File upload using a commons-fileupload of a listening component, in the listening method can be achieved upload success size

File write cache Words This mode feel can, download the progress bar idea now not:

  

The deal is Try{}catch (Exception e) {}

About file upload download and other progress bar implementation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.