fix: put as task from web

This commit is contained in:
Noah Hsu
2022-07-01 15:04:02 +08:00
parent 4d0ae6b1ef
commit 4340a48633
8 changed files with 45 additions and 7 deletions

View File

@ -7,9 +7,22 @@ import (
type FileStream struct {
Obj
io.ReadCloser
Mimetype string
Mimetype string
WebPutAsTask bool
}
func (f FileStream) GetMimetype() string {
return f.Mimetype
}
func (f FileStream) NeedStore() bool {
return f.WebPutAsTask
}
func (f *FileStream) GetReadCloser() io.ReadCloser {
return f.ReadCloser
}
func (f *FileStream) SetReadCloser(rc io.ReadCloser) {
f.ReadCloser = rc
}