ActionView::Helpers::FormHelper
file_field
API docs (Rails 8.1.4.1) ↗def file_field(object_name, method, options = {})
Description
Creates an <input> with type="file" for a model attribute.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Interacting with the preview updates the form submission.
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params
On this site, only the first 128 bytes of the file content are sent. The request body shows the file content as
(binary), and the params section hides the path of the temporary file on the server as (hidden).