[#294] added additional inline serving mime types
This commit is contained in:
parent
19d4fc04c1
commit
d60dd13581
|
@ -178,8 +178,14 @@ func (s *System) DeletePrefix(prefix string) []error {
|
||||||
}
|
}
|
||||||
|
|
||||||
var inlineServeContentTypes = []string{
|
var inlineServeContentTypes = []string{
|
||||||
"image/png", "image/jpg", "image/jpeg", "image/gif",
|
// image
|
||||||
"video/mp4", "video/3gpp", "video/quicktime", "video/x-ms-wmv",
|
"image/png", "image/jpg", "image/jpeg", "image/gif", "image/webp", "image/x-icon", "image/bmp",
|
||||||
|
// video
|
||||||
|
"video/webm", "video/mp4", "video/3gpp", "video/quicktime", "video/x-ms-wmv",
|
||||||
|
// audio
|
||||||
|
"audio/basic", "audio/aiff", "audio/mpeg", "audio/midi", "audio/wave",
|
||||||
|
// document
|
||||||
|
"application/pdf",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Serve serves the file at fileKey location to an HTTP response.
|
// Serve serves the file at fileKey location to an HTTP response.
|
||||||
|
|
Loading…
Reference in New Issue