Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.0.0-beta3] Form file input submission differs from v1 #2555

Closed
heikkilamarko opened this issue May 19, 2024 · 2 comments
Closed

[2.0.0-beta3] Form file input submission differs from v1 #2555

heikkilamarko opened this issue May 19, 2024 · 2 comments
Labels

Comments

@heikkilamarko
Copy link

heikkilamarko commented May 19, 2024

When submitting a form containing a file input element using version 2.0.0-beta3 of htmx, the form sends a payload when no file is selected. This does not occur with htmx version 1.9.12.

<input type="file" multiple name="attachments" form="task-new-form" class="form-control form-control-sm" />

v2.0.0-beta3

Screenshot 2024-05-19 at 9 30 31 Screenshot 2024-05-19 at 9 31 48

v1.9.12

Screenshot 2024-05-19 at 9 27 06
@Telroshan Telroshan added the 2.0 label May 19, 2024
@heikkilamarko
Copy link
Author

Not sure if this is incorrect behavior, but it behaves differently between v1 and v2.

@heikkilamarko heikkilamarko changed the title [2.0.0-beta3] Form submission issue with file input [2.0.0-beta3] Form file input submission differs from v1 May 19, 2024
@1cg
Copy link
Contributor

1cg commented May 22, 2024

should be fixed w/ 1e07206

@1cg 1cg closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants