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 7dc6b27 commit 5ef1c5cCopy full SHA for 5ef1c5c
src/utils/validateFile.ts
@@ -18,16 +18,6 @@ export const validateFile = (file?: File): ValidationResult => {
18
};
19
}
20
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
-
31
// Check if the file is empty
32
if (file.size === 0) {
33
return {
0 commit comments