diff --git a/pkg/service/file/file.go b/pkg/service/file/file.go index 8c76a5fa..83ea18e9 100644 --- a/pkg/service/file/file.go +++ b/pkg/service/file/file.go @@ -260,7 +260,7 @@ func TusUpload(ctx *gin.Context) { service.Error(ctx, errors.New(common.ERROR_OPEN_FILE)) return } - if uploadOffset == 1 { + if uploadOffset == 0 && len(b) > 0 { if strings.HasSuffix(strings.ToLower(path), ".mp4") { if err != nil { service.Error(ctx, errors.New(common.ERROR_OPEN_FILE))