Skip to content

Commit 203f116

Browse files
committed
test: 이미지 업로드 도전
1 parent e2fd9ad commit 203f116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/apis/updateUserApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const updateUserProfile = async ({ id, user_nickname, file }: UpdateUserP
2222
const bucketName = 'profile';
2323

2424
if (file) {
25-
const filePath = `profile_images/${id}/${file.name}`;
25+
const filePath = `public/${id}_${file.name}`;
2626
console.log(`Uploading file to path: ${filePath}`);
2727

2828
const { error: uploadError } = await supabase.storage.from(bucketName).upload(filePath, file, { upsert: true });

0 commit comments

Comments
 (0)