From cf63a39fd5b0b1d89641a3a32452bd7ca65002b1 Mon Sep 17 00:00:00 2001 From: "594433766@qq.com" Date: Wed, 25 Dec 2019 16:46:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B9=BF=E6=92=AD=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=8B=BE=E9=80=89=E5=90=8C=E6=AD=A5=E5=88=B0?= =?UTF-8?q?=E8=AE=BA=E5=9D=9B=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/static/js/webuploader.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upload/static/js/webuploader.js b/upload/static/js/webuploader.js index 901b2d969..0a9136c15 100644 --- a/upload/static/js/webuploader.js +++ b/upload/static/js/webuploader.js @@ -316,6 +316,10 @@ SWFUpload.prototype.initSettings = function (userSettings) { }; +SWFUpload.prototype.setUploadURL = function (url) { + this.uploader.options.server = url; +}; + SWFUpload.prototype.addPostParam = function (name, value) { this.uploader.options.formData[name] = value; }; -- Gitee From 9324a32807c28775aacfa990b1c4e030dcfd6a6b Mon Sep 17 00:00:00 2001 From: "594433766@qq.com" Date: Wed, 25 Dec 2019 16:53:41 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=B9=BF=E6=92=AD=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=8B=BE=E9=80=89=E5=90=8C=E6=AD=A5=E5=88=B0?= =?UTF-8?q?=E8=AE=BA=E5=9D=9B=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/static/js/webuploader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/static/js/webuploader.js b/upload/static/js/webuploader.js index 0a9136c15..d67e4c035 100644 --- a/upload/static/js/webuploader.js +++ b/upload/static/js/webuploader.js @@ -317,7 +317,7 @@ SWFUpload.prototype.initSettings = function (userSettings) { }; SWFUpload.prototype.setUploadURL = function (url) { - this.uploader.options.server = url; + this.uploader.options.server = url.toString(); }; SWFUpload.prototype.addPostParam = function (name, value) { -- Gitee