Skip to content

Commit 5ef1c5c

Browse files
committed
final changes
1 parent 7dc6b27 commit 5ef1c5c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/utils/validateFile.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ export const validateFile = (file?: File): ValidationResult => {
1818
};
1919
}
2020

21-
// Check if the input is not a File object (e.g., text input or invalid type)
22-
if (!(file instanceof File)) {
23-
return {
24-
success: false,
25-
promptContent: "Invalid input. Please upload a valid file.",
26-
promptDuration: 3000,
27-
promptType: "error",
28-
};
29-
}
30-
3121
// Check if the file is empty
3222
if (file.size === 0) {
3323
return {

0 commit comments

Comments
 (0)