Documentation
¶
Overview ¶
Package upload 提供上传功能
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// 允许上传的文件大小
Size int64 `json:"size" xml:"size,attr" yaml:"size" toml:"size"`
// 允许上传的扩展名
Exts []string `json:"exts" xml:"exts>ext" yaml:"exts" toml:"exts"`
// 上传内容中表示文件的字段名
Field string `json:"field" xml:"field" yaml:"field" toml:"field"`
}
Config 上传的配置项
func (*Config) SanitizeConfig ¶
func (u *Config) SanitizeConfig() *web.FieldError
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.