Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload speed much lower than via the browser #32

Closed
martinsotirov opened this issue Jan 11, 2024 · 2 comments · Fixed by #36
Closed

Upload speed much lower than via the browser #32

martinsotirov opened this issue Jan 11, 2024 · 2 comments · Fixed by #36

Comments

@martinsotirov
Copy link

Is it possible that Microsoft imposes some bandwidth limitations to the Azure app that we use to connect onedrive-uploader? I can never get more than about 300 kB/s while via the browser I can upload with multiple MB/s.

@virtualzone
Copy link
Owner

Same issue here... Not a big issue for me, as I'm using OneDrive uploader to upload backups via cronjobs, so no need to wait for the upload to finish.
If anyone has an idea on how to improve upload speeds, please let me know.

@northboys
Copy link

northboys commented Feb 19, 2024

File path: sdk/upload.go

var (
	UploadSessionFileSizeLimit int = 10 * 1024 * 1024 // 10 MB
	UploadSessionMultiple      int = 320 * 1024       // 320 KB
)

Can this variable be made custom?

example:
onedrive-uploader upload /tmp/image.jpg test --upload-speed-limit=1MB --upload-size-limit=10GB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants