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 411fb09 commit 3582809Copy full SHA for 3582809
src/addons/formData.ts
@@ -12,8 +12,8 @@ function convertFormData(
12
acc ? `${acc}[${ancestor}]` : ancestor
13
), null)
14
formKey = formKey ? `${formKey}[${key}]` : key
15
- if (value instanceof Array) {
16
- for (const item of value)
+ if (value instanceof Array || (globalThis.FileList && value instanceof FileList)) {
+ for (const item of value as File[])
17
formData.append(formKey, item)
18
} else if (
19
recursive &&
0 commit comments