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