From 4518cef23df308064dd108036fef81a4c673e1c9 Mon Sep 17 00:00:00 2001 From: luoliangyi <87842688@qq.com> Date: Fri, 10 Nov 2023 14:13:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0php=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/webservice/demo.html | 13 +++++++------ test/webservice/upload/upload.html | 13 +++++++++++++ test/webservice/upload/upload.php | 9 +++++++++ 3 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 test/webservice/upload/upload.html create mode 100644 test/webservice/upload/upload.php diff --git a/test/webservice/demo.html b/test/webservice/demo.html index a50c168b..613c1b0b 100644 --- a/test/webservice/demo.html +++ b/test/webservice/demo.html @@ -185,9 +185,9 @@ req1.image_path = message['image_path']; socket.send(JSON.stringify(req1)); - var req2 = {'func':'upload_local_file', 'iden':'111', 'file_path':'', 'upload_mode':'http', 'http_host':'192.168.100.148', 'http_port':8001}; - req2.file_path = message['image_path']; - socket.send(JSON.stringify(req2)); + //var req2 = {'func':'upload_local_file', 'iden':'111', 'file_path':'', 'upload_mode':'http', 'http_host':'192.168.100.70', 'http_port':8001, 'http_path':'/upload.php'}; + //req2.file_path = message['image_path']; + //socket.send(JSON.stringify(req2)); var req3 = {'func':'delete_local_file', 'file_path':''}; req3.file_path = message['image_path']; @@ -393,11 +393,12 @@ { socket.send(JSON.stringify({ 'func':'upload_local_file', - 'file_path':'D:\\1.jpg', + 'file_path':'D:\\5.jpg', 'remote_file_path':'/savedir/123.jpg', 'upload_mode':'http', - 'http_host':'192.168.100.148', - 'http_port':8001 + 'http_host':'192.168.1.70', + 'http_port':8001, + 'http_path':'/upload.php' })); } diff --git a/test/webservice/upload/upload.html b/test/webservice/upload/upload.html new file mode 100644 index 00000000..c4c1b500 --- /dev/null +++ b/test/webservice/upload/upload.html @@ -0,0 +1,13 @@ + + + + + Upload + + +
+ + +
+ + \ No newline at end of file diff --git a/test/webservice/upload/upload.php b/test/webservice/upload/upload.php new file mode 100644 index 00000000..561075f0 --- /dev/null +++ b/test/webservice/upload/upload.php @@ -0,0 +1,9 @@ +"; + +?> \ No newline at end of file