gaowanliang / gaowanliang/DownloadBot
上传重复的问题
- Dominant language
- Go
- Stars
- 800
- Forks
- 200
- PR merge metrics
- No merged PRs in 30d
Description
## 情况描述 ##

对于 G Drive, 多次上传将产生多个文件夹
---

对于 onedrive,多次上传将产生带后缀的文件(虽然在同文件夹中),
---
并且onedrive无法上传大文件
**tg 聊天记录**
> ...There was a connection problem when uploading downloads/100MB.bin. Retrying. It's the 9 times retrying
>
>DownloadFolder upload to OneDrive complete
在输出上述内容后,程序报错退出
```
2021/05/24 19:06:20 Failed to Restore :The Content-Range header length does not match the provided number of bytes.
panic: Failed to Restore :The Content-Range header length does not match the provided number of bytes.
goroutine 70 [running]:
log.Panicf(0xaef62c, 0x15, 0xc0001e3f40, 0x1, 0x1)
D:/program_app/go/src/log/log.go:358 +0xc0
onedrive.restore.func1(0xc000548670, 0xc00019bc20, 0xb114b8, 0xb114c0, 0xc0004c3620, 0x29, 0xc0000b2288, 0xc00051be00, 0x13, 0xc0000b22b8, ...)
D:/program_data/go/DownloadBot/vendor/onedrive/onedrive.go:104 +0x299
created by onedrive.restore
D:/program_data/go/DownloadBot/vendor/onedrive/onedrive.go:94 +0x207
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in vendor/onedrive/onedrive.go, especially the restore entry points at lines 94 and 104, and compare the reported OneDrive retry and Content-Range failure with the duplicate-upload behavior described for OneDrive and Google Drive. Done means the reported uploads no longer create duplicate folders or suffixed files, large OneDrive uploads complete without the shown panic, and the failure can be verified against the reproduction details.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100