aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/ObjectStore/S3ObjectTrait.php
Commit message (Collapse)AuthorAgeFilesLines
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-9/+9
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-23/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(ObjectStore): Make S3 MultipartUpload concurrency configurableFerdinand Thiessen2024-03-211-0/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(ObjectStore): Use common S3 trait so config and connection trait members ↵Ferdinand Thiessen2024-03-211-0/+2
| | | | | | are in sync Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: disable the internal s3sdk multi part copy logicRobin Appelman2024-03-061-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(s3): Add config option to disable multipart copy for certain s3 providersJulius Härtl2023-12-281-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* only do a multipart s3 copy when above the regular copy limitRobin Appelman2023-12-281-11/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(s3): support SSE-C headers for the MultipartCopy callTobias Zimmerer2023-11-141-1/+7
| | | | Signed-off-by: Tobias Zimmerer <3228193+ir0nhide@users.noreply.github.com>
* use multipart copy for s3Robin Appelman2023-09-201-4/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add utility command for object store objectsRobin Appelman2023-06-091-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(s3): Add option to specify an SSE-C customer provided keyJulius Härtl2023-01-241-5/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Manage s3 storage class in objectstoreFrançois Ménabé2023-01-121-1/+3
| | | | Signed-off-by: François Ménabé <francois.menabe@gmail.com>
* compare cached filesize on downloadMaxence Lange2022-12-011-1/+3
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Avoid allocating too much memory for the bufferJulius Härtl2022-10-111-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* don't set `null` as a bundle pathRobin Appelman2022-07-271-3/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only use nextcloud bundle when explicitly enabledRobin Appelman2022-07-051-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* also use nextcloud certificate bundle when downloading from s3Robin Appelman2022-07-051-0/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Wrap S3 multipart upload exceptionLouis Chemineau2022-02-161-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Wrap S3 multipart upload exceptionLouis Chemineau2022-02-151-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Make max size for single put uploads configurableJulius Härtl2021-12-291-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* s3 external storage listing reworkRobin Appelman2021-10-151-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Refactor writeObject to only use MultipartUpload when requiredBernd Rederlechner2021-08-201-17/+58
| | | | | | Signed-off-by: Bernd Rederlechner <Bernd.Rederlechner@t-systems.com> Co-authored-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #26463 from Worteks/fix-s3proxyJulius Härtl2021-07-141-0/+5
|\
| * fix(proxy): reaching s3 storage behind some http proxyMaxime Besson2021-04-091-4/+4
| | | | | | | | Signed-off-by: Maxime Besson <maxime.besson@worteks.com>
| * fix(proxy): reaching s3 storage behind some http proxySamuel2021-04-091-1/+6
| | | | | | | | Signed-off-by: Maxime Besson <maxime.besson@worteks.com>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | set mimetype for objects uploaded to object storagesRobin Appelman2021-04-211-1/+5
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* remove explicit fclose from S3->writeStreamRobin Appelman2021-03-111-2/+0
| | | | | | streams get closed automatically when dropped, and in some cases the stream seems to be already closed by the S3 library, in which case trying to close it again will raise an error Signed-off-by: Robin Appelman <robin@icewind.nl>
* use in objectstore copyRobin Appelman2020-11-241-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Upload part size as S3 parameter instead of constant valueFlorent2020-06-091-3/+1
| | | | | | | | 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>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* make seekable s3 stream genericRobin Appelman2020-04-011-11/+25
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Enable fseek for files in S3 storageLukas Stabe2020-04-011-19/+8
| | | | Signed-off-by: Lukas Stabe <lukas@stabe.de>
* Update license headersChristoph Wurst2019-12-051-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix typo in commentMorris Jobke2019-07-291-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use HTTP1.1 to read S3 objectsRoeland Jago Douma2019-07-101-0/+1
| | | | | | | | Some of the READs otherwise use HTTP/1.0 which is not always supported by all backends. HTTP/1.1 is there since 1999 way longer than S3 so safe to assume it is always there IMO. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix empty file uploads to S3Roeland Jago Douma2019-02-151-2/+23
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* always use multipart uploader for s3 uploadsRobin Appelman2019-01-281-2/+5
| | | | | | the multipart uploader handles non seekable streams while `upload` does not Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add objectExists to objectstore interfaceRobin Appelman2018-12-121-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove unused import statementsMorris Jobke2018-02-141-3/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use S3Client::upload instead of splitting single/multipart upload ourselvesRobin Appelman2018-01-241-43/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix contructing headers for s3 downloadRobin Appelman2017-11-081-1/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* use fopen directly when reading objects from s3Robin Appelman2017-10-271-5/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* propagate multipart upload exception when aborting uploadRobin Appelman2017-10-171-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* set s3 part size to 500mbRobin Appelman2017-10-111-1/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add tests for multipart uploadRobin Appelman2017-09-211-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>