mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-03 14:32:24 +02:00
Increase maximum file size to 100GB (#989)
* In July 2020, Microsoft increased the maximum file size for uploads from 15GB / 20GB for Personal / Business Accounts to 100GB per file for all account types
This commit is contained in:
parent
8c0d43183d
commit
810c47fcfe
11
src/sync.d
11
src/sync.d
|
@ -3819,14 +3819,9 @@ final class SyncEngine
|
||||||
// If performing a dry-run or parent path is found in the database
|
// If performing a dry-run or parent path is found in the database
|
||||||
if ((dryRun) || (parentPathFoundInDB)) {
|
if ((dryRun) || (parentPathFoundInDB)) {
|
||||||
// Maximum file size upload
|
// Maximum file size upload
|
||||||
// https://support.microsoft.com/en-au/help/3125202/restrictions-and-limitations-when-you-sync-files-and-folders
|
// https://support.microsoft.com/en-us/office/invalid-file-names-and-file-types-in-onedrive-and-sharepoint-64883a5d-228e-48f5-b3d2-eb39e07630fa?ui=en-us&rs=en-us&ad=us
|
||||||
// 1. OneDrive Business say's 15GB
|
// July 2020, maximum file size for all accounts is 100GB
|
||||||
// 2. Another article updated April 2018 says 20GB:
|
auto maxUploadFileSize = 107374182400; // 100GB
|
||||||
// https://answers.microsoft.com/en-us/onedrive/forum/odoptions-oddesktop-sdwin10/personal-onedrive-file-upload-size-max/a3621fc9-b766-4a99-99f8-bcc01ccb025f
|
|
||||||
|
|
||||||
// Use smaller size for now
|
|
||||||
auto maxUploadFileSize = 16106127360; // 15GB
|
|
||||||
//auto maxUploadFileSize = 21474836480; // 20GB
|
|
||||||
auto thisFileSize = getSize(path);
|
auto thisFileSize = getSize(path);
|
||||||
// To avoid a 409 Conflict error - does the file actually exist on OneDrive already?
|
// To avoid a 409 Conflict error - does the file actually exist on OneDrive already?
|
||||||
JSONValue fileDetailsFromOneDrive;
|
JSONValue fileDetailsFromOneDrive;
|
||||||
|
|
Loading…
Reference in a new issue