upload实现大文件切片上传功能
upload实现大文件切片上传功能(这是个前端小demo)
1、建立upload.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
<script src="js/spark-md5.js"></script>
<script src="js/upload.js"></script>
<body>
<input type="file" onchange="return uploadFile()" id="upload">
<div >
<!-- <video id="video" width="500px" height="300px" muted="muted" controls="controls" autoplay="autoplay"></video> -->
</div>
</body>
</html>
2、spark-md5.js
(function (factory) {
if (typeof exports === 'object') {
// N
版权声明:本文为Fairyasd原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。