IsAllowedStoredMediaType reports whether the media type is supported for durable chat file storage.
(mediaType string)
| 70 | // IsAllowedStoredMediaType reports whether the media type is supported for |
| 71 | // durable chat file storage. |
| 72 | func IsAllowedStoredMediaType(mediaType string) bool { |
| 73 | _, ok := allowedStoredMediaTypes[BaseMediaType(mediaType)] |
| 74 | return ok |
| 75 | } |
| 76 | |
| 77 | // IsInlineRenderableStoredMediaType reports whether a stored chat file may be |
| 78 | // served with Content-Disposition: inline. PDFs remain storable but |