我知道这是一个老问题,但对于那些与此问题作斗争的人:
你需要深入研究这里的文档:
https://github.com/blueimp/jQuery-File-Upload/wiki/Options
这里有一些有用的事件列表:
$('#fileupload')
.bind('fileuploadadd', function (e, data) {})
.bind('fileuploadsubmit', function (e, data) {})
.bind('fileuploadsend', function (e, data) {})
.bind('fileuploaddone', function (e, data) {})
.bind('fileuploadfail', function (e, data) {})
.bind('fileuploadalways', function (e, data) {})
.bind('fileuploadprogress', function (e, data) {})
.bind('fileuploadprogressall', function (e, data) {})
.bind('fileuploadstart', function (e) {})
.bind('fileuploadstop', function (e) {})
.bind('fileuploadchange', function (e, data) {})
.bind('fileuploadpaste', function (e, data) {})
.bind('fileuploaddrop', function (e, data) {})
.bind('fileuploaddragover', function (e) {})
.bind('fileuploadchunksend', function (e, data) {})
.bind('fileuploadchunkdone', function (e, data) {})
.bind('fileuploadchunkfail', function (e, data) {})
.bind('fileuploadchunkalways', function (e, data) {});