PHP uses the jQuery plug-in ajaxFileUpload to implement asynchronous file upload ,. PHP uses the jQuery plug-in ajaxFileUpload to implement asynchronous file upload. the most popular JQuery image Upload plug-in is Uploadify, which has good results, however, because the mobile phone does not use PHP combined with the jQuery plug-in ajaxFileUpload to implement asynchronous file upload,
The most popular JQuery image Upload plug-in is Uploadify, which works very well. However, because flash is not supported by mobile phones, you have to find another file Upload plug-in. Later I found that the ajaxFileUpload plug-in is quite good, so I used this plug-in for asynchronous file upload. There are also a lot of articles on the use of the ajaxFileUpload plug-in on the Internet, but I found that there is no PHP version, so the processing on the server side this time uses the PHP language for processing.
I. details about the syntax parameters of the ajaxFileUpload plug-in
Principle:Ajaxfileupload is implemented by listening to the onload method of iframe. after processing is completed from the server, the onload event of iframe is triggered to call its binding method, obtain the data body returned by the server in iframe in the binding method (common text, json, xml, script, html supported)
Syntax:$. AjaxFileUpload ([options])
II. let's take a look at how to use it.
1. first introduce the plug-in ajaxFileUpload.