From c99e731811d1bf329fbdc522cc09515f2ceb07ba Mon Sep 17 00:00:00 2001 From: dolymood Date: Thu, 19 Apr 2018 13:10:15 +0800 Subject: [PATCH] update(doc): upload checkSuccess --- document/components/docs/en-US/upload.md | 1 + document/components/docs/zh-CN/upload.md | 1 + 2 files changed, 2 insertions(+) diff --git a/document/components/docs/en-US/upload.md b/document/components/docs/en-US/upload.md index 0f91756f..1ac013f7 100644 --- a/document/components/docs/en-US/upload.md +++ b/document/components/docs/en-US/upload.md @@ -118,6 +118,7 @@ If `action` is a string, it will be transformed into `{ target: action }`. | withCredentials | Standard CORS requests would not send or set any cookies by default. In order to include cookies as part of the request, you need to set the withCredentials property to true | Boolean | false | | timeout | upload request timeout value | Number | 0 | | progressInterval | The time interval between progress reports (Unit: ms) | Number | 100 | +| checkSuccess | Check the response should be successful, the parameter is `response` object. If return true then it will be treated as successful | Function | function (res) { return true } | * `processFile` sub configuration diff --git a/document/components/docs/zh-CN/upload.md b/document/components/docs/zh-CN/upload.md index 18630352..109d97f3 100644 --- a/document/components/docs/zh-CN/upload.md +++ b/document/components/docs/zh-CN/upload.md @@ -116,6 +116,7 @@ | withCredentials | 标准的 CORS 请求是不会带上 cookie 的,如果想要带的话需要设置 withCredentials 为 true | Boolean | false | | timeout | 请求超时时间 | Number | 0 | | | progressInterval | 进度回调间隔(单位:ms) | Number | 100 | +| checkSuccess | 校验是否成功函数,参数为服务端响应数据,返回值为 true 则代表成功 | Function | function (res) { return true } | * `processFile` 子配置项 -- GitLab