mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-29 20:31:56 +08:00
Feat: file upload handler
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user