yongtiger / js-ajaxfileupload
Installs: 238
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Language:JavaScript
Type:js
This package is not auto-updated.
Last update: 2024-11-09 21:01:40 UTC
README
Improved carlcarl/AjaxFileUpload and fixed some bugs.
Features
- add
handleError
- add
start
andbeforeSend
local callbacks of events - fix ie9 and ie 10
- fix bugs: confict with yii.js(350)
Example:
ajaxFileUpload: function () { $.ajaxFileUpload({ url: '<your url>', // MUST! secureuri: false, // MUST! fileElementId:'<your file element id>', // MUST! type: 'post', // MUST! data: '<your data>', // MUST! dataType: 'json', // MUST! `json`, `xml`, etc. // optional start: function () { // ... }, // optional beforeSend: function () { // ... }, // optional success: function (data, status) { // ... }, // optional error: function (XMLHttpRequest, textStatus, errorThrown) { // ... }, // optional complete: function () { // ... } }); },
References
See also
- http://www.cnblogs.com/zrp2013/archive/2013/05/29/3106435.html
- http://www.oschina.net/question/1246890_142999
- http://www.developwebapp.com/5538869/
- http://www.lai18.com/content/9621987.html
License
ajaxfileupload is released under the MIT license, see LICENSE file for details.