Skip to content

a guide about how to upload large file (using plain javascript for frond-end and back-end)

License

Notifications You must be signed in to change notification settings

ldm-git/file-upload

 
 

Repository files navigation

Implement Large File Upload and Resume Feature

English | 中文

Blog

Node14 is recommended

To retry the upload, you need to delete the file in /target directory, otherwise the upload will succeed directly because the server cache the file

download demo file: https://v0c98mphqw.feishu.cn/file/boxcnZ34jCyQziXxsS9NaV0zfre

Frontend

  • Vue@2
  • Element-ui
  • Blob#slice: file slice
  • FileReader + WebWorker + spark-md5: create file hash
  • xhr: send formData

Backend

  • Nodejs@14
  • multiparty: resolve formData

start

npm install
npm run start

About

a guide about how to upload large file (using plain javascript for frond-end and back-end)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 52.6%
  • JavaScript 44.1%
  • HTML 3.3%