-> accept
Instructs the input to accept only a particular file type for that input using the accept option.
field :cover_video, as: :file, accept: "image/*"Default value
nil
Possible values
image/*, audio/*, doc/*, or any other types from the spec.
-> direct_upload
If you have large files and don't want to overload the server with uploads, you can use the direct_upload feature, which will upload the file directly to your cloud provider.
field :cover_video, as: :file, direct_upload: trueDefault value
false
Possible values
true, false
-> display_filename
Option that specify if the file should have the caption present or not.
field :cover_video, as: :file, display_filename: falseDefault value
true
Possible values
true, false
-> lightbox
On the Show view, clicking an image opens it in an in-page lightbox. The lightbox previews the image, cycles through the field's other images with the arrow buttons or the ← and → keys, closes with Esc or a click outside the image, and links to the original file in a new tab. Non-image files keep their download link.
Set lightbox: false to render the image on its own.
field :cover, as: :file, lightbox: falseDefault value
true
Possible values
true, false