Add HEIC and TIF image extensions to files endpoint

This commit is contained in:
Cameron
2025-12-17 16:57:27 -05:00
parent 4082f1fdb8
commit 07c27bf1bb

View File

@@ -303,6 +303,11 @@ pub fn is_image_or_video(path: &Path) -> bool {
|| extension == "mov" || extension == "mov"
|| extension == "nef" || extension == "nef"
|| extension == "webp" || extension == "webp"
|| extension == "tiff"
|| extension == "tif"
|| extension == "heif"
|| extension == "heic"
|| extension == "avif"
} }
pub fn is_valid_full_path<P: AsRef<Path> + Debug + AsRef<std::ffi::OsStr>>( pub fn is_valid_full_path<P: AsRef<Path> + Debug + AsRef<std::ffi::OsStr>>(