diff --git a/theme/onemoe.html b/theme/onemoe.html index 88f54c0..69ab5a9 100644 --- a/theme/onemoe.html +++ b/theme/onemoe.html @@ -807,6 +807,7 @@ return; } upbigfilename = encodeURIComponent((file.webkitRelativePath||file.name)); + var filemd5=''; function getext(str) { strarry=str.split('.'); @@ -843,7 +844,7 @@ td2.innerHTML=' ...'; var xhr1 = new XMLHttpRequest(); - xhr1.open("GET", '?action=upbigfile&upbigfilename='+ upbigfilename +'&filesize='+ file.size +'&lastModified='+ file.lastModified); + xhr1.open("POST", '?action=upbigfile'); xhr1.setRequestHeader('x-requested-with','XMLHttpRequest'); xhr1.onprogress = function(e){ td2.innerHTML+='.'; @@ -878,7 +879,7 @@ getuplink(i); } } - xhr1.send(null); + xhr1.send('upbigfilename='+ upbigfilename +'&filesize='+ file.size +'&filelastModified='+ file.lastModified +'&filemd5='+ filemd5); } }