diff --git a/document/components/docs/en-US/upload.md b/document/components/docs/en-US/upload.md index 0f91756f17c07739d4691ba60c99452075448b96..1ac013f7e7963fc4ecb50c55eb4e5b62e3fa9a78 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 1863035299d37097c04769a78e853279f36ca505..109d97f33798448d2b0f939b14fcb30775fc0f29 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` 子配置项