From 09027e7e33423e51bf89245fd2b633604315ae88 Mon Sep 17 00:00:00 2001 From: yebin-jeong <2022112390@dgu.ac.kr> Date: Sat, 30 Nov 2024 23:11:43 +0900 Subject: [PATCH] =?UTF-8?q?[Feature]=20#26=20-=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EC=97=85=EB=A1=9C=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/akopolio/Edit/edit.js | 3 ++- src/views/akopolio/create/create.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/akopolio/Edit/edit.js b/src/views/akopolio/Edit/edit.js index 308ebb3..dd08647 100644 --- a/src/views/akopolio/Edit/edit.js +++ b/src/views/akopolio/Edit/edit.js @@ -141,12 +141,13 @@ export default { images.value.splice(index, 1); }; + const prefix = 'images'; const uploadImages = async () => { const uploadedUrls = []; for (const image of images.value) { try { const { data } = await axios.post( - `${process.env.VUE_APP_BE_API_URL}/api/get-presigned-url`, + `${process.env.VUE_APP_BE_API_URL}/file/${prefix}/presigned-url`, { fileName: image.name, fileType: image.file.type, diff --git a/src/views/akopolio/create/create.js b/src/views/akopolio/create/create.js index 53b8618..1897d31 100644 --- a/src/views/akopolio/create/create.js +++ b/src/views/akopolio/create/create.js @@ -119,6 +119,7 @@ export default { this.images.splice(index, 1); }, async uploadImages() { + const prefix = 'images'; const uploadedUrls = []; for (const image of this.images) { @@ -126,7 +127,7 @@ export default { // 1. 프리사인드 URL 요청 const { data } = await axios.post( - `${process.env.VUE_APP_BE_API_URL}/api/get-presigned-url`, + `${process.env.VUE_APP_BE_API_URL}/file/${prefix}/presigned-url`, { fileName: image.name, fileType: image.type,