mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: basic file validator
This commit is contained in:
@@ -6,6 +6,7 @@ import "mime/multipart"
|
||||
type FileData struct {
|
||||
File multipart.File
|
||||
Size uint64
|
||||
Name string
|
||||
MIMEType string
|
||||
}
|
||||
|
||||
@@ -24,3 +25,7 @@ func (file FileData) GetSize() uint64 {
|
||||
func (file FileData) Close() error {
|
||||
return file.Close()
|
||||
}
|
||||
|
||||
func (file FileData) GetFileName() string {
|
||||
return file.Name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user