How to use jquery-file-upload
This article mainly introduces how to use jquery-file-upload, the introduction in the article is very detailed, has a certain reference value, interested friends must read!
Jqueryfileupload introduction
JQueryFileUpload is a very excellent upload component, which mainly uses XHR as the upload method, and makes use of quite a lot of modern browser functions, so it can achieve functions such as batch upload, super large file upload, image preview, drag and drop upload, upload progress display, cross-domain upload and so on.
Its function is very powerful, API is also relatively simple, if you can skillfully use $. Ajax, I believe it is not too difficult to understand, but its UI will also be very difficult to use. Personally, it is suggested that if small components can define a simple set of UI themselves, there is no need to use something so complex. If you must use its UI, it is recommended that you take a look at customized jQueryFileUpload for microblogging single file upload.
A simplified model of jQueryFileUpload
JQueryFileUpload contains a bunch of files. The first thing you need to figure out is which of the core parts are. The official website has given the simplest basic functions of the model. A simplest jQueryFileUpload upload component must include the following files:
JQuery library. JQuery1.8 or above is recommended.
Js/vendor/jquery.ui.widget.js:jQueryUIWidget
Js/jquery.iframe-transport.js: extended iframe data transfer
Js/jquery.fileupload.js:jQueryFileUpload core class
Js/cors/jquery.xdr-transport.js should load this file under IE to solve cross-domain problems.
Examples of the official website:
JQueryFileUploadExample
The above is all the contents of this article "how to use jquery-file-upload". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!