-> accept
Instructs the input to accept only a particular file type for that input using the accept option.
ruby
field :cover_video, as: :file, accept: "image/*"Default
nil
Possible values
image/*, audio/*, doc/*, or any other types from the spec.
-> direct_upload
License: Pro
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.
ruby
field :cover_video, as: :file, direct_upload: trueDefault
false
Possible values
true, false