Merge branch 'feat-hjj-FileExpand' into dev

This commit is contained in:
jiaji.H 2026-03-26 14:33:39 +08:00
commit 495657c65f

View File

@ -260,9 +260,8 @@ func TusUpload(ctx *gin.Context) {
service.Error(ctx, errors.New(common.ERROR_OPEN_FILE))
return
}
if uploadOffset == 0 {
if uploadOffset == 1 {
if strings.HasSuffix(strings.ToLower(path), ".mp4") {
b, err := io.ReadAll(f)
if err != nil {
service.Error(ctx, errors.New(common.ERROR_OPEN_FILE))
return