mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add multipart: true to form for file upload.
I was slightly overzealous when removing this before.
Identified here: ed78770b1a
\#commitcomment-2281181
This commit is contained in:
parent
5c2eb889c2
commit
d4d9e1f9bf
1 changed files with 1 additions and 1 deletions
|
@ -1264,7 +1264,7 @@ Creates a field set for grouping HTML form elements.
|
|||
Creates a file upload field.
|
||||
|
||||
```html+erb
|
||||
<%= form_tag {action: "post"} do %>
|
||||
<%= form_tag {action: "post"}, {multipart: true} do %>
|
||||
<label for="file">File to Upload</label> <%= file_field_tag "file" %>
|
||||
<%= submit_tag %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue