feat: set overwrite for aliyundrive upload

pull/761/head
Xhofe 2022-03-14 22:43:27 +08:00
parent 4eef9cd9bc
commit 5a1b16a601
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ func (driver AliDrive) Upload(file *model.FileStream, account *model.Account) er
buf := make([]byte, 1024)
n, _ := file.Read(buf[:])
reqBody := base.Json{
"check_name_mode": "auto_rename",
"check_name_mode": "overwrite",
"drive_id": account.DriveId,
"name": file.GetFileName(),
"parent_file_id": parentFile.Id,