1
0
Fork 0
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:
Steve Klabnik 2012-12-10 11:01:21 -08:00
parent 5c2eb889c2
commit d4d9e1f9bf

View file

@ -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 %>