diff --git a/src/utilities/index.ts b/src/utilities/index.ts index 65679c3..f9259bd 100644 --- a/src/utilities/index.ts +++ b/src/utilities/index.ts @@ -165,7 +165,7 @@ export const createFormData = ( 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]); }