提交 0eca276b 编写于 作者: Y yurj26

fix(app): uni.uploadFile timeout (question/163747)

上级 1989860e
......@@ -24,8 +24,12 @@ const createUploadTaskById = function (uploadTaskId, {
files,
header,
formData,
timeout = __uniConfig.networkTimeout.uploadFile ? __uniConfig.networkTimeout.uploadFile / 1000 : 120
timeout
} = {}) {
timeout =
(timeout ||
(__uniConfig.networkTimeout && __uniConfig.networkTimeout.uploadFile) ||
60 * 1000) / 1000
const uploader = plus.uploader.createUpload(url, {
timeout,
// 需要与其它平台上的表现保持一致,不走重试的逻辑。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册