Merge branch 'feat-hjj-FileExpand' into dev
This commit is contained in:
commit
8d19ffc010
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user