提交 31452ecd 编写于 作者: NoSubject's avatar NoSubject

上传文件时,只有当file类型File是,出现进度提示

(cherry picked from commit 1e87f2a6)
上级 60ee188d
......@@ -167,7 +167,7 @@ MWF.xDesktop.Actions.RestActions = new Class({
xhr.open(method, uri, async!==false);
xhr.withCredentials = true;
if (file) messageItem = this.addFormDataMessage(file, false, xhr, progress);
if (file && File.prototype.isPrototypeOf(file)) messageItem = this.addFormDataMessage(file, false, xhr, progress);
xhr.send(data);
},
setMessageText: function(messageItem, text){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册