try fix upload

pull/217/head
qkqpttgf 2021-01-26 09:14:58 +08:00 committed by GitHub
parent 558d34c9e3
commit 38bd4e4041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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='<font color="red">'+xhr1.responseText+'</font>';
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) {