Feat: file upload handler

This commit is contained in:
HFO4
2019-11-17 13:50:14 +08:00
parent 841832bb65
commit 99e7eecab7
12 changed files with 242 additions and 25 deletions

View File

@@ -11,7 +11,7 @@ type FileData struct {
}
func (file FileData) Read(p []byte) (n int, err error) {
return file.Read(p)
return file.File.Read(p)
}
func (file FileData) GetMIMEType() string {
@@ -23,7 +23,7 @@ func (file FileData) GetSize() uint64 {
}
func (file FileData) Close() error {
return file.Close()
return file.File.Close()
}
func (file FileData) GetFileName() string {