Merge branch 'feat-hjj-FileExpand' into dev

This commit is contained in:
jiaji.H 2026-03-26 14:40:30 +08:00
commit 8d19ffc010

View File

@ -260,7 +260,7 @@ func TusUpload(ctx *gin.Context) {
service.Error(ctx, errors.New(common.ERROR_OPEN_FILE)) service.Error(ctx, errors.New(common.ERROR_OPEN_FILE))
return return
} }
if uploadOffset == 1 { if uploadOffset == 0 && len(b) > 0 {
if strings.HasSuffix(strings.ToLower(path), ".mp4") { if strings.HasSuffix(strings.ToLower(path), ".mp4") {
if err != nil { if err != nil {
service.Error(ctx, errors.New(common.ERROR_OPEN_FILE)) service.Error(ctx, errors.New(common.ERROR_OPEN_FILE))