diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index d63b7e4..4c7740c 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -420,7 +420,7 @@ const useStorage = defineStore('storageStore', () => { constructUrl(arr.slice(0, -1), false) + `/file/${arr[arr.length - 1]}`, { file: file?.name, ...data }, ) - if (res && res.status === 201 && res.data && res.data.upload) { + if (res && res.status === 200 && res.data && res.data.upload) { await axios .put(res.data.upload, file, { headers: { 'Content-Type': file?.type },