diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index cbb06e50d..75cc61ab8 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -214,7 +214,9 @@ break; } }; - upload.onloadstart(); + if (isFunction(upload.onloadstart)) { + upload.onloadstart(); + } } var boundary = "AjaxUploadBoundary" + (new Date).getTime(); xhr.setRequestHeader("Content-Type", "multipart/form-data; boundary=" + boundary);