field :documents, as: :files
Instructs the input to accept only a particular file type for that input using the
field :cover_video, as: :file, accept: "image/*"
doc/*, or any other types from the spec.
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: true
Please ensure you have the
download_attachments? methods set on your model's pundit policy. Otherwise, the input and download/delete buttons will be hidden.
is_video options are deprecated in favor of letting Active Storage figure out the type of the attachment. If Active Storage detects a file as an image, Avo will display it as an image. Same for audio and video files.