diff --git a/webapi/File Detection.go b/webapi/File Detection.go index d72036e..da19704 100644 --- a/webapi/File Detection.go +++ b/webapi/File Detection.go @@ -55,7 +55,7 @@ func FileTranslateExtension(extension string) (fileType, fileFormat uint16) { case "xls", "xlsx", "ods": return core.TypeDocument, core.FormatExcel - case "gif", "jpg", "jpeg", "png", "svg", "bmp", "tif", "tiff", "jfif": + case "gif", "jpg", "jpeg", "png", "svg", "bmp", "tif", "tiff", "jfif", "webp": return core.TypePicture, core.FormatPicture case "mp4", "flv", "avi", "mov", "mpg", "mpeg", "h264", "3g2", "3gp", "mkv", "wmv", "webm":