perf: 修改文件的并发上传数
This commit is contained in:
parent
597332c797
commit
76629e5b59
@ -99,11 +99,11 @@ export default {
|
|||||||
username: this.$store.state.user.name,
|
username: this.$store.state.user.name,
|
||||||
options: {
|
options: {
|
||||||
target: api.simpleUploadURL,
|
target: api.simpleUploadURL,
|
||||||
chunkSize: 1 * 1024 * 1024,
|
chunkSize: 2 * 1024 * 1024,
|
||||||
// speedSmoothingFactor: 0.1,
|
// speedSmoothingFactor: 0.1,
|
||||||
// progressCallbacksInterval: 500,
|
// progressCallbacksInterval: 500,
|
||||||
maxChunkRetries: 5, // 最大重试次数
|
maxChunkRetries: 3, // 最大重试次数
|
||||||
simultaneousUploads: 10, // 并发上传数
|
simultaneousUploads: 5, // 并发上传数
|
||||||
testChunks: true, // 是否开启服务器分片校验
|
testChunks: true, // 是否开启服务器分片校验
|
||||||
// 服务器分片校验函数,秒传及断点续传基础
|
// 服务器分片校验函数,秒传及断点续传基础
|
||||||
checkChunkUploadedByResponse: function (chunk, message) {
|
checkChunkUploadedByResponse: function (chunk, message) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user