Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrFileTypeForbidden ¶
IsErrFileTypeForbidden checks if an error is a ErrFileTypeForbidden.
func VerifyAllowedContentType ¶
VerifyAllowedContentType validates a file is allowed to be uploaded.
Types ¶
type ErrFileTypeForbidden ¶
type ErrFileTypeForbidden struct {
Type string
}
ErrFileTypeForbidden not allowed file type error
func (ErrFileTypeForbidden) Error ¶
func (err ErrFileTypeForbidden) Error() string
Click to show internal directories.
Click to hide internal directories.