| | |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <title>上传接口测试</title> |
| | | <meta http-equiv="Expires" content="0" /> |
| | | <meta http-equiv="Cache" content="no-cache" /> |
| | | <meta http-equiv="Pragma" content="no-cache" /> |
| | | <meta http-equiv="Cache-control" content="no-cache" /> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <script src="js/jquery.1.12.4.js"></script> |
| | | <script src="js/rsa.min.js"></script> |
| | |
| | | <script src="js/insertFiles.js"></script> |
| | | <script> |
| | | var app = {}; |
| | | var path = "20230425"; |
| | | var path = "20230627"; |
| | | var url = "http://127.0.0.1:12316/server/"; |
| | | //var token = "c36e4f94-dfde-401e-9967-2c4a449f1300"; |
| | | var token = "1305cff2-516c-4d1f-af9a-9e53206f129c"; |
| | | var token = "8a17604e-3865-43c8-a14f-d4b17ed33656"; |
| | | |
| | | $(function () { |
| | | $("#pathSpan").html(path); |
| | |
| | | |
| | | // 综合数据入库 |
| | | function insertAllFiles() { |
| | | app.mappers = metaFiles; |
| | | //app.mappers = metaFiles; |
| | | ajax(getUrl("dataUpload/insertFiles"), "POST", JSON.stringify(app.mappers), null, null, function (rs) { |
| | | console.log(rs); |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <form id="upForm" name="upForm" method="post" enctype="multipart/form-data" action="http://127.0.0.1:12316/file/upload"> |
| | | <!--<form id="upForm" name="upForm" method="post" enctype="multipart/form-data" action="http://127.0.0.1:12316/file/upload">--> |
| | | <form id="upForm" name="upForm" method="post" enctype="multipart/form-data" action="Upload/Post?path=20230728"> |
| | | 上传路径:<span id="pathSpan"></span>,当前令牌:<span id="tokenSpan"></span> |
| | | <hr /> |
| | | <br /> |
| | |
| | | <input value="下载瓦片" type="button" onclick="downloadTiles();" /> |
| | | <hr /> |
| | | <br /> |
| | | |
| | | 上传测试: |
| | | <div> |
| | | <label for="apifiles">请选择文件:</label> |
| | | <input name="apifiles" type="file" multiple="multiple" /> |
| | | <input type="submit" value="Upload" /> |
| | | </div> |
| | | </form> |
| | | <br /> |
| | | <br /> |