Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileUploadMeta ¶ added in v0.1.6
type FileUploadMeta struct {
FileName string `json:"fileName"` // 文件名
Size int64 `json:"size"` // 文件大小
ContentType string `json:"contentType"` // 文件类型
FileHeader *multipart.FileHeader `json:"-"` // 文件头信息(不输出到JSON)
}
FileUploadMeta 文件上传元数据结构
func (*FileUploadMeta) CopyTo ¶ added in v0.1.6
func (f *FileUploadMeta) CopyTo(writer io.Writer) error
CopyTo 复制文件到目标 writer
func (*FileUploadMeta) DetectContentType ¶ added in v0.1.6
func (f *FileUploadMeta) DetectContentType() error
DetectContentType 检测文件的实际MIME类型
Click to show internal directories.
Click to hide internal directories.