Skip to content

Commit

Permalink
Add doc description, fix uppy options
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Nov 3, 2022
1 parent 79b242b commit 0df3aba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ substring of a value of the authenticated user. Examples are `/Shares`, `/{{.Id}
hovers the row with his mouse. Defaults to `false`.
- `option.routing` This accepts an object with the following fields to customize the routing behaviour:
- `options.routing.idBased` Enable or disable fileIds being added to the URL. Defaults to `true` because otherwise e.g. spaces with name clashes can't be resolved correctly. Only disable this if you can guarantee server side that spaces of the same namespace can't have name clashes.
- `options.upload.xhr.timeout` Specifies the timeout for XHR uploads in milliseconds.

### Sentry

Expand Down
4 changes: 3 additions & 1 deletion packages/web-runtime/src/composables/upload/useUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export function useUpload(options: UploadOptions): UploadResult {
...(isTusSupported && {
tusMaxChunkSize: unref(tusMaxChunkSize),
tusHttpMethodOverride: unref(tusHttpMethodOverride),
tusExtension: unref(tusExtension),
tusExtension: unref(tusExtension)
}),
...(!isTusSupported && {
xhrTimeout: store.getters.configuration?.options?.upload?.xhr?.timeout || 60000
})
}
Expand Down

0 comments on commit 0df3aba

Please sign in to comment.