37 lines
960 B
HTML
37 lines
960 B
HTML
<!--
|
|
* @Author: jukaifeng jukaifeng@lingtu.com
|
|
* @Date: 2024-10-24 09:03:58
|
|
* @LastEditors: jukaifeng jukaifeng@lingtu.com
|
|
* @LastEditTime: 2024-10-24 09:27:24
|
|
* @FilePath: /case-uploads/client/index.html
|
|
* @Description:
|
|
-->
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>常见上传案例</title>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<input type="file" id="file" />
|
|
<button id="upload">form-data上传</button>
|
|
</div>
|
|
<div class="container">
|
|
<input type="file" id="file2" />
|
|
<button id="upload2">base64上传</button>
|
|
</div>
|
|
<div class="container">
|
|
<input type="file" id="file3" />
|
|
<button id="upload3">二进制流上传</button>
|
|
</div>
|
|
<script type="module" src="./index.js"></script>
|
|
</body>
|
|
<style>
|
|
.container {
|
|
margin: 1rem;
|
|
}
|
|
</style>
|
|
</html>
|