We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5d034a commit 2bc2cb6Copy full SHA for 2bc2cb6
src/internal/uploads.ts
@@ -128,7 +128,8 @@ export const createForm = async <T = Record<string, unknown>>(
128
129
// We check for Blob not File because Bun.File doesn't inherit from File,
130
// but they both inherit from Blob and have a `name` property at runtime.
131
-const isNamedBlob = (value: object) => value instanceof File || (value instanceof Blob && 'name' in value);
+const isNamedBlob = (value: object) =>
132
+ (File && value instanceof File) || (value instanceof Blob && 'name' in value);
133
134
const isUploadable = (value: unknown) =>
135
typeof value === 'object' &&
0 commit comments