Feat: recycling file storage and user capacity when uploading canceled

This commit is contained in:
HFO4
2019-11-18 14:06:15 +08:00
parent 160f964564
commit 631c23f065
9 changed files with 93 additions and 14 deletions

View File

@@ -36,4 +36,6 @@ func TestGenericBeforeUpload(t *testing.T) {
asserts.Error(GenericBeforeUpload(ctx, &fs, file))
file.Name = "1.txt"
asserts.NoError(GenericBeforeUpload(ctx, &fs, file))
file.Name = "1.t/xt"
asserts.Error(GenericBeforeUpload(ctx, &fs, file))
}