Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
longjinwen committed Feb 21, 2020
1 parent f116aa7 commit 58d8bb5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@

#### 安装

##### (c)npm install simple-upload-slice-file -D
##### (c)npm install simple-upload-slice-file -

#### 演示

##### 1. (c)npm install
##### 2. node server/app.js


#### 使用
Expand Down Expand Up @@ -108,8 +113,17 @@
// console.log(res);
}
});

```
/**
* 在请求地址 query 中会自动携带文件上传信息,server/app.js 中提供演示文件
* task-order: 15 -> 当前切片中的块号,从 1 开始
task-size-range: 146800640-157286400 -> 当前切片的在文件中的大小范围
task-total-slice: 24 -> 总切片数 / 块数
task-total-size: 249456695 -> 文件总大小
task-i: SuX6xxxxx06889 -> 当前文件任务 ID
task-size: 10485760 -> 当前切片的大小
*
*/
```
##### vue
```javascript

Expand Down
2 changes: 1 addition & 1 deletion dist/simple-upload-slice-file.min.js.map

Large diffs are not rendered by default.

0 comments on commit 58d8bb5

Please sign in to comment.