mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-17 22:58:07 +00:00
Feat: remote upload callback / validation
This commit is contained in:
1 parent
d29b7ef6f8
commit
4a5782b4e5
6 files changed
+61
-8
No files matched your search
@@ -44,10 +44,7 @@ func (fs *FileSystem) ValidateFileSize(ctx context.Context, size uint64) bool {
|
||||
|
||||
// ValidateCapacity 验证并扣除用户容量
|
||||
func (fs *FileSystem) ValidateCapacity(ctx context.Context, size uint64) bool {
|
||||
if fs.User.IncreaseStorage(size) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return fs.User.IncreaseStorage(size)
|
||||
}
|
||||
|
||||
// ValidateExtension 验证文件扩展名
|
||||
|
||||
Reference in new issue
Block a user