Skip to content

Commit f82357c

Browse files
committed
added:upload and download html example
1 parent 39a4a6c commit f82357c

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

XEngine_APPClient/download.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Download Page</title>
7+
<!-- 可以在这里添加CSS样式或其他头部信息 -->
8+
</head>
9+
<body>
10+
<h1>File Download Example</h1>
11+
<p>Click on the link below to download the file:</p>
12+
<!-- 下载链接 -->
13+
<a href="http://127.0.0.1:5101/storagekey1/1.exe" download="DownloadedFileName.exe">Download Example File</a>
14+
<!--
15+
在 href 属性中填写您要提供下载的文件的正确服务器路径。
16+
download 属性中可以指定下载时保存的文件名。
17+
-->
18+
<!-- 其他内容 -->
19+
</body>
20+
</html>

XEngine_APPClient/upload.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Simple File Upload</title>
6+
</head>
7+
<body>
8+
<h2>Upload your file</h2>
9+
<form action="http://127.0.0.1:5102/api?filename=1.exe&storeagekey=storagekey1"" method="post" enctype="multipart/form-data">
10+
Select file to upload:
11+
<input type="file" name="fileToUpload" id="fileToUpload">
12+
<input type="submit" value="Upload File" name="submit">
13+
</form>
14+
</body>
15+
</html>

0 commit comments

Comments
 (0)