mirror of https://github.com/cloudreve/Cloudreve
fix: should use `CompressSize` to check size of files before creating compress task
parent
c62e355345
commit
11043b43e6
|
@ -208,7 +208,7 @@ func (service *ItemCompressService) CreateCompressTask(c *gin.Context) serialize
|
||||||
}
|
}
|
||||||
|
|
||||||
// 文件尺寸限制
|
// 文件尺寸限制
|
||||||
if fs.User.Group.OptionsSerialized.DecompressSize != 0 && totalSize > fs.User.Group.
|
if fs.User.Group.OptionsSerialized.CompressSize != 0 && totalSize > fs.User.Group.
|
||||||
OptionsSerialized.CompressSize {
|
OptionsSerialized.CompressSize {
|
||||||
return serializer.Err(serializer.CodeParamErr, "文件太大", nil)
|
return serializer.Err(serializer.CodeParamErr, "文件太大", nil)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue