Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileUploadResult ¶
func UploadFile ¶
func UploadFile(assetsDir string, file *multipart.FileHeader) (*FileUploadResult, error)
上传file文件到assetsDir目录下,assetsDir 目录不存在则自动创建,返回存储位置
Click to show internal directories.
Click to hide internal directories.