onError
コールバックが発生したアラートを防ぐ方法はありますか?
エラーをキャプチャして別の方法で表示するだけです
はい、showMessage
オプションを上書きするだけです。
例えば:
var uploader = new qq.FineUploader({
request: {
endpoint: 'my/endpoint'
},
callbacks: {
onError: function(fileId, filename, reason, maybeXhr) {
//do something with the error
}
},
showMessage: function(message) {
//either include an empty body, or some other code to display (error) messages
}
});