-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for Rails 6.x where the multipart form enctype was not being appl…
…ied (#30) In Rails 6.x, form_for ..., multipart: true was not correctly applying the enctype="multipart/form-data" to the HTML form tag Turns out that in Rails 6.x and prior you are supposed to either use: - form_for ..., html: {multipart: true} - OR - If the form uses the file_field method then the enctype is automatically added Both of the potential fixes for Rails 6.x, also work in Rails 7.0 and above
- Loading branch information
1 parent
b4a4a7f
commit 3816d45
Showing
3 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters