From dd4dde83f30800587883837f98353788dabd98e0 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 8 Mar 2021 13:14:02 +0800 Subject: [PATCH] undo form urlencode --- theme/classic.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/theme/classic.html b/theme/classic.html index cd8b238..0b81a9c 100644 --- a/theme/classic.html +++ b/theme/classic.html @@ -894,7 +894,7 @@ td2.innerHTML=' ...'; var xhr1 = new XMLHttpRequest(); xhr1.open("POST", '?action=upbigfile'); - xhr1.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"); + //xhr1.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"); xhr1.setRequestHeader('x-requested-with','XMLHttpRequest'); xhr1.onprogress = function(e){ td2.innerHTML+='.'; @@ -1112,7 +1112,7 @@ } else { var xhr1 = new XMLHttpRequest(); xhr1.open("POST", '?action=upbigfile'); - xhr1.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"); + //xhr1.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"); xhr1.setRequestHeader('x-requested-with','XMLHttpRequest'); xhr1.onload = function(e){ //console.log(xhr1.status+xhr1.responseText); @@ -1195,7 +1195,7 @@ if (asize>totalsize) { var xhr1 = new XMLHttpRequest(); xhr1.open("POST", '?action=upbigfile'); - xhr1.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"); + //xhr1.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"); xhr1.setRequestHeader('x-requested-with','XMLHttpRequest'); xhr1.onload = function(e){ console.log(xhr1.responseText+','+xhr1.status); @@ -1265,7 +1265,7 @@ // 上传结束 var xhr1 = new XMLHttpRequest(); xhr1.open("POST", '?action=upbigfile'); - xhr1.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"); + //xhr1.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"); xhr1.setRequestHeader('x-requested-with','XMLHttpRequest'); xhr1.onload = function(e){ console.log(xhr1.responseText+','+xhr1.status);