Skip to content

Commit aee9d43

Browse files
author
winddies
committed
fix review
1 parent 0d1d24e commit aee9d43

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "qiniu-js",
33
"jsName": "qiniu",
4-
"version": "3.0.1",
4+
"version": "3.0.2",
55
"private": false,
66
"description": "Javascript SDK for Qiniu Resource (Cloud) Storage AP",
77
"main": "lib/index.js",

src/upload/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Resume from './resume'
22
import Direct from './direct'
3-
import { UploadOptions, UploadHandler, DEFAULT_CHUNK_SIZE } from './base'
3+
import { UploadOptions, UploadHandler } from './base'
44
import StatisticsLogger from '../statisticsLog'
55

66
export * from './base'
@@ -15,7 +15,7 @@ export default function createUploadManager(
1515
return new Direct(options, handlers, statisticsLogger)
1616
}
1717

18-
return options.file.size > DEFAULT_CHUNK_SIZE
18+
return options.file.size > 4 * 1024 * 1024
1919
? new Resume(options, handlers, statisticsLogger)
2020
: new Direct(options, handlers, statisticsLogger)
2121
}

0 commit comments

Comments
 (0)