From d06e9311ce77fdf09b8795e280829a474793b167 Mon Sep 17 00:00:00 2001 From: Alem Tuzlak Date: Thu, 12 Dec 2024 12:19:44 +0100 Subject: [PATCH] fix for fiellist --- src/utilities/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); }