HTML 5 file API: Files Drag and drop upload function

Source: Internet
Author: User

The upcoming HTML5 specification has several features that make HTML far beyond its own capabilities as a markup language, and provide some powerful scripting tools for WEB developers. The organization responsible for overseeing the HTML5 development process has just published a strong draft specification –HTML5 the File API interface feature.

The API is designed to improve the way browser-based WEB applications handle file uploads, making it possible for files to be dragged and uploaded directly. The draft defines a new input option <input type= "file" > to handle uploading files.

More surprisingly, the API provides developers with a way to correlate upload data and display upload progress and other information.

However, in addition to Firefox 3.6, there are few browser brands that support the API well. If you have installed the latest version of Firefox 3.6, you can experience the file drag-and-drop upload feature at the following demo address.

Demo: Firefox 3.6 file drag and drop upload function

However, once the new features are widely supported, the HTML5 file API allows for desktop-like drag-and-drop effects, as well as the ability to synchronously process multiple uploads and display upload progress, no longer using Flash technology or other external tools.

For more details on the HTML5 File API draft, as well as the development application in conjunction with JavaScript, please refer to the Publish first working draft of the file API for more details on this article.

HTML 5 file API: Files Drag and drop upload function

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.