Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { // file name Name string // path Path string NewPath string // img attributes Width int Height int IsComp int8 // is img compress }
file
func (*File) GetUploadFile ¶
func (f *File) GetUploadFile(file *multipart.FileHeader) (filename string, err error)
获得文件上传路径
func (*File) SaveUploadedFile ¶
func (f *File) SaveUploadedFile(file *multipart.FileHeader, filename string) (path string, err error)
save file
Click to show internal directories.
Click to hide internal directories.