fix: webapp upload file (#10195)

This commit is contained in:
zxhlyh 2024-11-02 17:03:14 +08:00 committed by GitHub
commit dfa3ef0564
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -216,7 +216,7 @@ export const useFile = (fileConfig: FileUpload) => {
handleAddFile(uploadingFile)
startProgressTimer(uploadingFile.id)
uploadRemoteFileInfo(url).then((res) => {
uploadRemoteFileInfo(url, !!params.token).then((res) => {
const newFile = {
...uploadingFile,
type: res.mime_type,