aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Upload
Commit message (Collapse)AuthorAgeFilesLines
* fix: rework UploadFolder implementationuploadfolder-reworkRobin Appelman2025-02-252-23/+37
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-132-2/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Use Http framework where possibleuseHttpFrameworkGit'Fellow2024-12-142-3/+5
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix: improve assembly streamRobin Appelman2024-12-051-8/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-217-54/+28
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-2710-208/+34
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Use proper path when trying to check if a file needs to get copiedJulius Härtl2024-03-081-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix: Validate that we have a proper distributed cache configuredJulius Härtl2023-11-091-1/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix(dav): use quota of destination in s3 chunk uploadMax2023-08-021-2/+2
| | | | | | | | | | | | Resolves: #39228. Check the free space on the destination. Before it was checking the free space on `$storage` which is the upload storage of the user who triggered the upload. This led to user quota being applied even when uploading to a share with unlimited space. Signed-off-by: Max <max@nextcloud.com>
* Merge pull request #38930 from nextcloud/chunk-clean-failedRobin Appelman2023-07-201-1/+9
|\ | | | | clean failed upload chunks
| * clean failed upload chunksRobin Appelman2023-06-211-1/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: check that object store backend supports multi part uploadsDaniel Kesselberg2023-07-171-0/+3
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix error on delete in ChunkingV2PluginLorenzo Tanganelli2023-05-051-9/+7
| | | | Signed-off-by: Lorenzo Tanganelli <lorenzo.tanganelli@hotmail.it>
* feat(s3): Use multipart upload for chunked uploadingJulius Härtl2023-03-086-9/+566
| | | | | | This allows to stream file chunks directly to S3 during upload. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Silence errors of return type mismatch from Sabre for nowCôme Chilliet2023-02-071-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Type sizes as int|float throughout the code baseCôme Chilliet2023-02-071-1/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix dav application tests and code for PHP 8.1Côme Chilliet2021-11-231-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove error suppressionacsfer2021-08-241-2/+2
| | | This seems no longer needed as per https://bugs.php.net/bug.php?id=50688
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-048-11/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-1/+1
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update urls to stackoverflow.com to "HTTPS"J0WI2020-09-171-1/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Return proper status when file didn't exist beforeJulius Härtl2020-08-131-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Delete chunks if the move on an upload failedJulius Härtl2020-08-121-6/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headers for 19Christoph Wurst2020-04-296-1/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use a proper upload file so propfinds return 404Roeland Jago Douma2020-04-212-2/+84
| | | | | | | | | | Fixes #20235 By using an UploadFile we make sure that we don't need to have another check everywhere for the path. But we just have ot check (which we have to anyway) if it is a proper Connector/File (or directory). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Verify that destination is not a directory.Daniel Kesselberg2020-04-141-0/+16
| | | | | | Otherwise file_put_contents will fail later. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-103-22/+22
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+1
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-057-9/+20
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-225-1/+4
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* make assemblystream seekableRobin Appelman2019-03-131-3/+37
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Background job to cleanup leftover chunked uploadsRoeland Jago Douma2019-01-044-21/+96
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Implement the size of an assembly streamRoeland Jago Douma2018-10-261-1/+3
| | | | | | | This will make it possible to act propely on moves of future files if we need to know the size (like for max size virus scanning). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* lazy open first source stream in assemblystreamRobin Appelman2018-10-221-5/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #11435 from nextcloud/assemblystream-node-to-smallMorris Jobke2018-10-011-0/+9
|\ | | | | throw an error if a node is smaller than expected in assemblystream
| * throw an error if a node is smaller than expected in assemblystreamRobin Appelman2018-09-281-0/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | AssemblyStream is also eof if we have no more source streamRobin Appelman2018-09-281-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix integer overflow in ChunkingPluginMorris Jobke2018-03-061-1/+4
| | | | | | Avoids errors when the size exceeds MAX_INT because of the cast to int. Better cast it to float to avoid this. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8335 from nextcloud/remove-unused-importMorris Jobke2018-02-141-2/+0
|\ | | | | Remove unused import statements
| * Remove unused import statementsMorris Jobke2018-02-141-2/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Simplify return statementMorris Jobke2018-02-131-2/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Return proper principal on the uploads collection listingRoeland Jago Douma2018-01-101-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Handle OC-Total-Length in new chunkingThomas Müller2017-12-151-0/+106
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>