Comments: HTML 5 is a powerful tool for Web developers. Recently, W3C has released a new draft-HTML5 File API, which will greatly improve Web-based File upload operations and even directly drag and drop files from the desktop to the Web.HTML 5It makes HTML, a simple slogan, a mature charm, a powerful tool for Web developers. Recently, W3C has released a new draft --HTML5 File APIThis API can greatly improve the Web-based file upload operations, and even directly drag and drop files from the desktop to the Web.
This draft uses <input type = "file"/> to upload files, and its corresponding API provides developers with a mechanism to manipulate the upload data and upload progress. However, there are currently few browsers that support this API, and only Firefox 3.6 is actually supported. If you use the latest Firefox 3.6 version, you can experience drag-and-drop file upload on the demo page.
At the same time, this API also promises to provide a mechanism for Web programs to bring file upload operations closer to the desktop program experience, drag and Drop multiple files to the Web and separately display the progress of each upload process.