Skip to content

Commit cf76b14

Browse files
committed
fix: When uploading a FileList, get the correct property from the
`FormData`
1 parent ac852d3 commit cf76b14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export const UploadFilesBody: ZetaSchema<FormData, File[]> = createZetaSchema<
234234
};
235235
}
236236

237-
const files = value.getAll("file");
237+
const files = value.getAll("files");
238238
if (!Array.isArray(files)) {
239239
return {
240240
issues: [{ message: `Expected array of Files, got ${typeof files}` }],

0 commit comments

Comments
 (0)