Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
fix: Change create storage ref logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayathy committed Dec 14, 2022
1 parent b30f3fa commit e747a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/firebase/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const createStoregeRef = (
fileName: string,
index: number,
uuid: string,
): StorageReference => ref(storage, `images/${uuid}/${fileName}_${index}`);
): StorageReference => ref(storage, `images/${uuid}/${fileName}_${crypto.randomUUID()}`);

export const uploadImage = (
imageFile: File,
Expand Down

0 comments on commit e747a6a

Please sign in to comment.