Skip to content

Commit 2285316

Browse files
committed
document the new mime_type param on file:entries tag
1 parent 4fd2cb5 commit 2285316

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/add-ons/file.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,21 @@ You can hard code the file entries tag to show specific files. You may also spec
128128

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

131+
### `mime_type=`
132+
133+
mime_type="image/jpeg|image/png"
134+
135+
Filter returned files by MIME type. You may specify one or more MIME types; separate multiple values with the pipe character.
136+
137+
Or use "not" to exclude types:
138+
139+
mime_type="not video/mp4|video/quicktime"
140+
141+
Common examples:
142+
143+
- Images only: `mime_type="image/jpeg|image/png|image/gif"`
144+
- PDFs only: `mime_type="application/pdf"`
145+
131146
### `limit=`
132147

133148
limit="30"

0 commit comments

Comments
 (0)