Skip to content

Commit

Permalink
fix for fiellist
Browse files Browse the repository at this point in the history
  • Loading branch information
AlemTuzlak committed Dec 12, 2024
1 parent b3f23f9 commit d06e931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const createFormData = <T extends FieldValues>(
continue;
}
// Handle FileList
if (value instanceof FileList) {
if (typeof FileList !== "undefined" && value instanceof FileList) {
for (let i = 0; i < value.length; i++) {
formData.append(key, value[i]);
}
Expand Down

0 comments on commit d06e931

Please sign in to comment.