Skip to content

Commit 0e84336

Browse files
authored
Update form_input.md
1 parent 00f92da commit 0e84336

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/api/100-components/form_input.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ If given, this value will be the initial value of the input. If used in an edit
5555

5656
## File Upload
5757

58+
Don't forget to add the `multipart: true` attribute to your `form_config` in order to enable file uploads!
59+
5860
In order to perform a single file upload, add this `form_input` component
5961

6062
```ruby
@@ -67,7 +69,7 @@ In order to perform multiple file uploads, add this `form_input` component
6769
form_input key: :some_files, type: :file, multiple: true
6870
```
6971

70-
Don't forget to add the `multiple: true` attribute to your `form_config`!
72+
Don't forget to add the `multiple: true` attribute to your `form_config` in order to enable multi file upload!
7173

7274
In order to accept multiple files, you should permit params on your controller like:
7375

0 commit comments

Comments
 (0)