Skip to content

Commit

Permalink
Add name to FileUploaderField
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro committed Feb 28, 2024
1 parent 8203d60 commit e2fd1b7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export function FileUploaderField<E extends string>({
allowedFileTypes,
height: height_,
isUploading,
name,
}: Props<E>) {
const config = useBentoConfig().fileUploaderField;
const height = height_ ?? config.defaultHeight;
Expand Down Expand Up @@ -354,7 +355,7 @@ export function FileUploaderField<E extends string>({
</Stack>
</Inset>
)}
<input {...getInputProps()} {...fieldProps} />
<input name={name} {...getInputProps()} {...fieldProps} />
</Box>
</Field>
);
Expand Down

0 comments on commit e2fd1b7

Please sign in to comment.