Fix: able to upload empty file

This commit is contained in:
HFO4
2019-11-23 15:37:13 +08:00
parent 948059ec1c
commit 671d031d00
6 changed files with 45 additions and 4 deletions

View File

@ -14,7 +14,7 @@ import (
func TestGenericBeforeUpload(t *testing.T) {
asserts := assert.New(t)
file := local.FileData{
file := local.FileStream{
Size: 5,
Name: "1.txt",
}