Skip to content

Commit c6247f2

Browse files
committed
fix: allow to upload the same file a few times
1 parent cff1ac5 commit c6247f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom/MarkdownEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ async function uploadFileToS3(file: File): Promise<string | undefined> {
710710
return;
711711
}
712712
713-
const originalFilename = file.name.split('.').slice(0, -1).join('.');
713+
const originalFilename = file.name.split('.').slice(0, -1).join('.') + `_${Date.now()}`;
714714
const originalExtension = file.name.split('.').pop();
715715
716716
const { uploadUrl, tagline, previewUrl, error } = await callAdminForthApi({

0 commit comments

Comments
 (0)