mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 05:44:04 +08:00
feat: set overwrite for aliyundrive upload
This commit is contained in:
parent
4eef9cd9bc
commit
5a1b16a601
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user