Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/add-ons/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,21 @@ You can hard code the file entries tag to show specific files. You may also spec

If you want to display only the files that are in certain folder within an Upload Directory, specify the folder ID using this parameter.

### `mime_type=`

mime_type="image/jpeg|image/png"

Filter returned files by MIME type. You may specify one or more MIME types; separate multiple values with the pipe character.

Or use "not" to exclude types:

mime_type="not video/mp4|video/quicktime"

Common examples:

- Images only: `mime_type="image/jpeg|image/png|image/gif"`
- PDFs only: `mime_type="application/pdf"`

### `limit=`

limit="30"
Expand Down