Feat: get thumb & download file in qiniu policy

This commit is contained in:
HFO4
2020-01-15 14:15:25 +08:00
parent 534e127f87
commit 7fbbcefc57
8 changed files with 62 additions and 4 deletions

View File

@@ -34,6 +34,11 @@ func (fs *FileSystem) ValidateLegalName(ctx context.Context, name string) bool {
return false
}
// 结尾不能是空格
if strings.HasSuffix(name, " ") {
return false
}
return true
}