]> source.dussan.org Git - nextcloud-server.git/commit
Upload part size as S3 parameter instead of constant value 21317/head
authorFlorent <florent@coppint.com>
Mon, 8 Jun 2020 15:38:00 +0000 (17:38 +0200)
committerFlorent <florent@coppint.com>
Tue, 9 Jun 2020 07:18:42 +0000 (09:18 +0200)
commit3594ba6971df3b070130f89e2b1f72ef5f9330bd
tree9a9fda1330e100a5b086aad6f880b4996f262df6
parentd67f627ebac82bcf7d9f51d46407ecc5184c0405
Upload part size as S3 parameter instead of constant value

Some S3 providers need a custom upload part size (500 MB static value in Nextcloud).
Here is a commit to change this value via S3 configuration, instead of using S3_UPLOAD_PART_SIZE constant.
A new parameter is added for an S3 connection : uploadPartSize

Signed-off-by: Florent <florent@coppint.com>
lib/private/Files/ObjectStore/S3ConnectionTrait.php
lib/private/Files/ObjectStore/S3ObjectTrait.php