Skip to content

zys-contrib/file-upload

 
 

Repository files navigation

前端大文件上传 + 断点续传解决方案

english

推荐使用 nodejs14

重新演示上传需要删除 /target 中的文件,否则由于服务端保存了文件上传会直接成功

示例文件: /public/video.flv

前端

  • vue + element 界面展示
  • Blob#slice 实现文件切片
  • FileReader + spark-md5 + web-worker 生成文件 hash
  • xhr 发送 formData

服务端

  • nodejs
  • multiparty 处理 formData

start

npm install
npm run start

相关博客

字节跳动面试官:请你实现一个大文件上传和断点续传

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 52.9%
  • JavaScript 43.7%
  • HTML 3.4%