bigfile-upload

前端 - 大文件上传的解决方案

Stars
26

nodejs

# 
git clone https://github.com/Neveryu/bigfile-upload.git

# 
cd bigfile-upload

# 
npm i

# 
npm start

http://localhost:3000/

1200kb

2

  • -${index}``hash``hash``hash

3

  • hash

4

5

  • 10kb2M

1hash

  • hash spark-md5 public/hash.js
  • file.slice(cur, cur + size)

2

  • xhr upload.onProgress

3

  • xhr abort()

3

  • nodejs readStream/writeStream