From 38bd4e40411a9a8cd4217104dd51daac511a36ca Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 26 Jan 2021 09:14:58 +0800 Subject: [PATCH] try fix upload --- theme/nchyn_grey.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/theme/nchyn_grey.html b/theme/nchyn_grey.html index f07b8f5..85164b4 100644 --- a/theme/nchyn_grey.html +++ b/theme/nchyn_grey.html @@ -1032,10 +1032,10 @@ return false; uploadbuttonshow(); return; } + var filemd5 = ''; var xhr1 = new XMLHttpRequest(); - xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent((file.webkitRelativePath||file.name)) +'&filesize='+ file.size +'&lastModified='+ file.lastModified); + xhr1.open("POST", '?action=upbigfile'); xhr1.setRequestHeader('x-requested-with','XMLHttpRequest'); - xhr1.send(null); xhr1.onload = function(e){ td2.innerHTML=''+xhr1.responseText+''; if (xhr1.status==200) { @@ -1054,6 +1054,7 @@ return false; getuplink(i); } } + xhr1.send('upbigfilename='+ encodeURIComponent((file.webkitRelativePath||file.name)) +'&filesize='+ file.size +'&filelastModified='+ file.lastModified +'&filemd5='+ filemd5); } } function size_format(num) {