From 7d1d3095559a29f8d9629fcabb3081ce09af5b47 Mon Sep 17 00:00:00 2001 From: somnetsak123 Date: Thu, 14 Dec 2023 15:08:49 +0700 Subject: [PATCH] fix :updateFile status 200 --- Services/client/src/stores/storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index d6915a1..bf80bc7 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -470,7 +470,7 @@ const useStorage = defineStore('storageStore', () => { upload: !!file, }, ) - if (res && res.status === 204 && res.data && res.data.uploadUrl) { + if (res && res.status === 200 && res.data && res.data.uploadUrl) { await axios .put(res.data.uploadUrl, file, { headers: { 'Content-Type': file?.type },