Documentation ¶
Index ¶
Constants ¶
View Source
const ( XLSX string = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" XLSM string = "application/vnd.ms-excel.sheet.macroEnabled.12" XLS string = "application/vnd.ms-excel" CSV string = "application/csv" PDF string = "application/pdf" DOC string = "application/msword" DOCX string = "application/vnd.openxmlformats-officedocument.wordprocessingml.document" RTF string = "application/rtf" JPG string = "image/jpg" JPEG string = "image/jpeg" PNG string = "image/png" JFIF string = "image/jfif" PJPEG string = "image/pjeg" PJP string = "image/pjp" GIF string = "image/gif" SVG string = "image/svg" )
*
- Reference mime types *
- https://stackoverflow.com/a/4212908
- https://codingislove.com/list-mime-types-2016/
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileType ¶
type FileType struct {
// contains filtered or unexported fields
}
func NewFileType ¶
func (FileType) IsAllowedExtension ¶
Click to show internal directories.
Click to hide internal directories.