Browse Source

[release-2.0] fix: timeout error caused by upload processing for more than 30 seconds (#814)

This is an automated cherry-pick of #813

/assign ruibaby

```release-note
去除上传文件处理时间超过30秒后的报错
```
release-2.0
Halo Dev Bot 2 years ago committed by GitHub
parent
commit
ab9801f656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/components/upload/UppyUpload.vue

1
src/components/upload/UppyUpload.vue

@ -52,6 +52,7 @@ const uppy = computed(() => {
fieldName: props.name, fieldName: props.name,
method: props.method, method: props.method,
limit: 5, limit: 5,
timeout: 0,
getResponseError: (responseText) => { getResponseError: (responseText) => {
const response = JSON.parse(responseText); const response = JSON.parse(responseText);
const { title, detail } = (response || {}) as ProblemDetail; const { title, detail } = (response || {}) as ProblemDetail;

Loading…
Cancel
Save