From 31452ecdfa6722bd93b7ab6caad485b780d8ea0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E8=B5=B7?= Date: Thu, 1 Jul 2021 12:20:10 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=8F=AA=E6=9C=89=E5=BD=93file=E7=B1=BB=E5=9E=8BFile?= =?UTF-8?q?=E6=98=AF=EF=BC=8C=E5=87=BA=E7=8E=B0=E8=BF=9B=E5=BA=A6=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 1e87f2a6f6abd7055c4b19940bb4b79b08bfc73f) --- o2web/source/o2_core/o2/xDesktop/Actions/RestActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/o2web/source/o2_core/o2/xDesktop/Actions/RestActions.js b/o2web/source/o2_core/o2/xDesktop/Actions/RestActions.js index 680893b1ec..00fa1d4545 100644 --- a/o2web/source/o2_core/o2/xDesktop/Actions/RestActions.js +++ b/o2web/source/o2_core/o2/xDesktop/Actions/RestActions.js @@ -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){ -- GitLab