We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b5de79 commit 2d7a154Copy full SHA for 2d7a154
lib/files/updateUpload.ts
@@ -40,8 +40,8 @@ export const updateUpload = async (
40
getOldPath: () => Promise<string | null | undefined>,
41
setNewPath: (path: string) => Promise<any>,
42
): Promise<FormPassBackState> => {
43
- if (isFileNotEmpty(file)) {
44
- const filePath = `${folder}/${randomBytes(16).toString("hex")}.${getFileExtension(file)}`
+ if (await isFileNotEmpty(file)) {
+ const filePath = `${folder}/${randomBytes(16).toString("hex")}.${await getFileExtension(file)}`
45
46
// Save the new file to the file system
47
try {
0 commit comments