From 6e0622c793c290ddfdf1e0060b9b707ca2d9c4e1 Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Sun, 3 May 2020 18:46:10 +0800
Subject: [PATCH] Update lybwb.php
---
theme/lybwb.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/theme/lybwb.php b/theme/lybwb.php
index a6d611d..a273a94 100644
--- a/theme/lybwb.php
+++ b/theme/lybwb.php
@@ -74,7 +74,7 @@
-
+
@@ -229,7 +229,7 @@
-
-
+
@@ -445,7 +445,7 @@
-
+
@@ -908,7 +908,7 @@ echo 'IPv4: ' ,$ip, "\n";
return;
}
var xhr1 = new XMLHttpRequest();
- xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent(file.name) +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
+ xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent((file.webkitRelativePath||file.name)) +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
xhr1.send(null);
xhr1.onload = function(e){
@@ -1019,7 +1019,7 @@ echo 'IPv4: ' ,$ip, "\n";
if (response['size']>0) {
// contain size, upload finish. 有size说明是最终返回,上传结束
var xhr3 = new XMLHttpRequest();
- xhr3.open("GET", '?action=del_upload_cache&filename=.'+file.lastModified+ '_' +file.size+ '_' +encodeURIComponent(file.name)+'.tmp');
+ xhr3.open("GET", '?action=del_upload_cache&filelastModified='+file.lastModified+'&filesize='+file.size+'&filename='+encodeURIComponent((file.webkitRelativePath||file.name)));
xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
xhr3.send(null);
xhr3.onload = function(e){
@@ -1028,7 +1028,7 @@ echo 'IPv4: ' ,$ip, "\n";
var filemd5 = spark.end();
var xhr4 = new XMLHttpRequest();
- xhr4.open("GET", '?action=uploaded_rename&filename='+encodeURIComponent(file.name)+'&filemd5='+filemd5);
+ xhr4.open("GET", '?action=uploaded_rename&filename='+encodeURIComponent((file.webkitRelativePath||file.name))+'&filemd5='+filemd5);
xhr4.setRequestHeader('x-requested-with','XMLHttpRequest');
xhr4.send(null);
xhr4.onload = function(e){