diff --git a/src/storage/s3.js b/src/storage/s3.js index 86bb4d6a4..5a06977bb 100644 --- a/src/storage/s3.js +++ b/src/storage/s3.js @@ -255,8 +255,8 @@ function copy(apiConfig, oldFilePath, newFilePath) { }; // S3 copyObject has a file size limit of 5GB so if we have larger files, we do a multipart copy - // Exoscale takes too long to copy 5GB - const largeFileLimit = apiConfig.provider === 'exoscale-sos' ? 1024 * 1024 * 1024 : 5 * 1024 * 1024 * 1024; + // Exoscale and B2 take too long to copy 5GB + const largeFileLimit = (apiConfig.provider === 'exoscale-sos' || apiConfig.provider === 'backblaze-b2') ? 1024 * 1024 * 1024 : 5 * 1024 * 1024 * 1024; if (entry.size < largeFileLimit) { events.emit('progress', `Copying ${relativePath || oldFilePath}`);