Documentation ¶
Index ¶
Constants ¶
View Source
const MIMEOctetStream = "application/octet-stream"
Variables ¶
View Source
var ( ErrMissingFile = errors.NewErrors(fiber.StatusBadRequest, "You must enter file.") ErrUnvalidMIMEType = errors.NewErrors(fiber.StatusForbidden, "You must enter valid file. Please check extension!") ErrMaxUploadSize = errors.NewErrors(fiber.StatusForbidden, "You've reached max file size!") )
View Source
var MIMEExtensions = map[string]string{}/* 105 elements not displayed */
MIME types were copied from https://github.com/nginx/nginx/blob/master/conf/mime.types
Functions ¶
func IsValidMIME ¶
func UpdateAvatar ¶
func UpdateAvatar(c *fiber.Ctx, uu *ent.UserUpdateOne, name string, removeAvatar bool) error
func UploadFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.