From 22853166fe1f4cb4e152a496fe17c0c82e715d22 Mon Sep 17 00:00:00 2001 From: Tom Jaeger Date: Fri, 15 Aug 2025 12:43:25 -0400 Subject: [PATCH 1/2] document the new mime_type param on file:entries tag --- docs/add-ons/file.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/add-ons/file.md b/docs/add-ons/file.md index a7bef039b..485ef45c7 100755 --- a/docs/add-ons/file.md +++ b/docs/add-ons/file.md @@ -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" From c63accd8b79e630f2aca5e6ba54a3c3320c8698f Mon Sep 17 00:00:00 2001 From: Tom Jaeger Date: Fri, 15 Aug 2025 12:54:02 -0400 Subject: [PATCH 2/2] added docs for the file_type param --- docs/add-ons/file.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/add-ons/file.md b/docs/add-ons/file.md index 485ef45c7..13dd00b7e 100755 --- a/docs/add-ons/file.md +++ b/docs/add-ons/file.md @@ -128,6 +128,22 @@ 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. +### `file_type=` + + file_type="img|doc" + +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. + +Or use "not" to exclude types: + + file_type="not audio|video" + +Common examples: + +- Images only: `file_type="img"` +- Documents only: `file_type="doc"` + + ### `mime_type=` mime_type="image/jpeg|image/png"