You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudreve/pkg/filesystem/local/file.go

32 lines
512 B

5 years ago
package local
import "mime/multipart"
// FileData 上传的文件数据
type FileData struct {
File multipart.File
Size uint64
Name string
5 years ago
MIMEType string
}
func (file FileData) Read(p []byte) (n int, err error) {
return file.Read(p)
}
func (file FileData) GetMIMEType() string {
return file.MIMEType
}
func (file FileData) GetSize() uint64 {
return file.Size
}
func (file FileData) Close() error {
return file.Close()
}
func (file FileData) GetFileName() string {
return file.Name
}