Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUploader ¶
func AddUploader(name string, up UploaderGenerator)
AddUploader makes a uploader generator available by the provided theme name. If Add is called twice with the same name or if uploader is nil, it panics.
func SaveMultipartFile ¶
func SaveMultipartFile(fh *multipart.FileHeader, path string) (err error)
Types ¶
type LocalFileUploader ¶
type LocalFileUploader struct {
BasePath string
}
type Uploader ¶
func GetFileEngine ¶
func GetLocalFileUploader ¶
func GetLocalFileUploader() Uploader
type UploaderGenerator ¶
type UploaderGenerator func() Uploader
Click to show internal directories.
Click to hide internal directories.