Skip to content

Commit c63accd

Browse files
committed
added docs for the file_type param
1 parent 2285316 commit c63accd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/add-ons/file.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,22 @@ 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+
### `file_type=`
132+
133+
file_type="img|doc"
134+
135+
Filter returned files by file type group, as classified by the core MIME groups (defined in the mimes configuration). You may specify one or more types; separate multiple values with the pipe character.
136+
137+
Or use "not" to exclude types:
138+
139+
file_type="not audio|video"
140+
141+
Common examples:
142+
143+
- Images only: `file_type="img"`
144+
- Documents only: `file_type="doc"`
145+
146+
131147
### `mime_type=`
132148

133149
mime_type="image/jpeg|image/png"

0 commit comments

Comments
 (0)