Documentation ¶
Index ¶
- func CheckContaionExt(t FileType, name string) bool
- func CheckMaxSize(t FileType, f multipart.File) bool
- func CheckPermission(dst string) bool
- func CheckSavePath(dst string) bool
- func CreateSavePath(dst string, perm os.FileMode) error
- func GetFileExt(name string) string
- func GetFileName(name string) string
- func GetSavePath() string
- func SaveFile(file *multipart.FileHeader, dst string) error
- type FileType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckContaionExt ¶
func CheckPermission ¶
func CheckSavePath ¶
func GetFileExt ¶
func GetFileName ¶
func GetSavePath ¶
func GetSavePath() string
Types ¶
Click to show internal directories.
Click to hide internal directories.