Feat: get thumb & download file in qiniu policy
This commit is contained in:
@@ -34,6 +34,11 @@ func (fs *FileSystem) ValidateLegalName(ctx context.Context, name string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// 结尾不能是空格
|
||||
if strings.HasSuffix(name, " ") {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user