Skip to content

Commit

Permalink
🐛 Fix: multiple uploading in the same time will cause rename failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Molunerfinn committed Jul 14, 2021
1 parent bdf523a commit 12cecc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/apis/app/uploader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Uploader {
let name: undefined | string | null
let fileName: string | undefined
if (autoRename) {
fileName = dayjs().add(index, 'second').format('YYYYMMDDHHmmss') + item.extname
fileName = dayjs().add(index, 'ms').format('YYYYMMDDHHmmSSS') + item.extname
} else {
fileName = item.fileName
}
Expand Down

0 comments on commit 12cecc2

Please sign in to comment.