diff options
Diffstat (limited to 'internal/media/util.go')
-rw-r--r-- | internal/media/util.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/media/util.go b/internal/media/util.go index f3cd1b986..6dfcede89 100644 --- a/internal/media/util.go +++ b/internal/media/util.go @@ -26,6 +26,16 @@ import ( "github.com/sirupsen/logrus" ) +// AllSupportedMIMETypes just returns all media +// MIME types supported by this instance. +func AllSupportedMIMETypes() []string { + return []string{ + mimeImageJpeg, + mimeImageGif, + mimeImagePng, + } +} + // parseContentType parses the MIME content type from a file, returning it as a string in the form (eg., "image/jpeg"). // Returns an error if the content type is not something we can process. // |