package
0.0.0-20230816073800-5da36973e672
Repository: https://github.com/lc-1010/oneblogservice.git
Documentation: pkg.go.dev
# Functions
CheckAllowExt checks if the given file type is allowed based on the file extension.
CheckOverMaxSize checks if the size of the file is over the maximum allowed size.
CheckPermission checks if the given destination has proper permission.
CheckSavePath check save path.
CreateSavePath creates a directory at the given destination path with the specified permissions.
GetFileExt returns the file extension of the given name.
GetFileNmae return md5string name.
GetSavePath return save path.
SaveFile saves a file to the specified destination.
# Type aliases
FileType for upload file type.