summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Upload
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Update license headersMorris Jobke2017-11-062-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* refactor chunked assembly streamRobin Appelman2017-07-211-56/+32
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Chunking NG: Assemble in natural sort order of filesMarkus Goetz2017-03-171-1/+1
| | | | | | | | | | | For https://github.com/owncloud/client/pull/5476 Before this, the assembly could be bogusly in the order 0,1,10,11,2,3 etc. As per the spec "The name of every chunk should be its chunk number." https://github.com/cernbox/smashbox/blob/master/protocol/chunking.md Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* FilesHome now also returns DAV propertiesVincent Petry2016-09-261-1/+1
| | | | | | | | | | | | | | The files home node must also return DAV properties like etag, permissions, etc for the clients to work like they did with the old endpoint. This fix makes FilesHome extend the Sabre Directory class, this makes the FilesPlugin and other plugins recognize it as a directory and will retrieve the matching properties when applicable. Downstream of https://github.com/owncloud/core/pull/26066 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Improve chunk upload AssemblyStream performanceVincent Petry2016-09-131-8/+31
|
* Fix apps/Joas Schilling2016-07-215-5/+15
|
* Update license headersLukas Reschke2016-05-265-5/+95
|
* Move dav app to PSR-4 (#24527)Joas Schilling2016-05-125-0/+495
* Move Application to correct namespace and PSR-4 it * Move dav app to PSR-4