feat: add HEIF, HEIC, and WebP to image extensions

- Added some image formats: heif, heic, webp
This commit is contained in:
Mohd Hassan Khan 2025-08-15 18:21:29 +05:30 committed by divyam234
parent e7f5fca450
commit 59a0702df2
No known key found for this signature in database

View file

@ -18,7 +18,7 @@ const (
var (
documentExtensions = []string{"doc", "docx", "ppt", "pptx", "pps", "ppsx", "odt", "xls", "xlsx", "csv", "pdf", "txt"}
imageExtensions = []string{"jpg", "jpeg", "png", "gif", "bmp", "svg"}
imageExtensions = []string{"jpg", "jpeg", "png", "gif", "bmp", "svg", "webp", "heif", "heic"}
videoExtensions = []string{"mp4", "webm", "mov", "avi", "m4v", "flv", "wmv", "mkv", "mpg", "mpeg", "m2v", "mpv"}
audioExtensions = []string{"mp3", "wav", "ogg", "m4a", "flac", "aac", "wma", "aiff", "ape", "alac", "opus", "pcm"}
archiveExtensions = []string{"zip", "rar", "tar", "gz", "7z", "iso", "dmg", "pkg"}