summaryrefslogtreecommitdiffstats
path: root/lib/public/Files
Commit message (Collapse)AuthorAgeFilesLines
* Allow to check for the mimetype by content onlyJoas Schilling2019-12-121-1/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Harden appdata putcontentRoeland Jago Douma2019-04-081-0/+1
| | | | | | | If for whatever reason appdata got into a strange state this will at least propegate up and not make it do boom the next run. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add objectExists to objectstore interfaceRobin Appelman2018-12-121-0/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add interface to allow storages from opting out of encryptionRobin Appelman2018-11-271-0/+31
| | | | | | As opposed to hard-coding a list of excluded storages Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add PHPDoc for thrown exceptionMorris Jobke2018-11-191-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix string doc type casingChristoph Wurst2018-11-151-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* extend storage api to allow directly writing a stream to storageRobin Appelman2018-10-311-0/+40
| | | | | | | | | | | this removes the need for temporary storages with some external storage backends. The new method is added to a separate interface to maintain compatibility with storage backends implementing the storage interface directly (without inheriting common) Currently the interface is implemented for objectstorage based storages and local storage and used by webdav uploads Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add getExtension() to FileInfoRobin Appelman2018-10-292-0/+16
| | | | | | | this is a fairly common operation so it makes sense to prevent having to repeatedly implement it. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #10179 from nextcloud/mount-filterMorris Jobke2018-07-111-0/+8
|\ | | | | Add the option to filter mounts for a user
| * Add the option to filter mounts for a userRobin Appelman2018-07-101-0/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Separate fopen into read and write methodsJulius Härtl2018-07-111-2/+11
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add fopen method to ISimpleFileJulius Härtl2018-07-111-0/+9
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add resource type phpDoc for putContent methodsJulius Härtl2018-06-262-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make Appdata staticRoeland Jago Douma2018-05-141-3/+3
| | | | | | * Add fileid for simpleroot folders (only internal) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2018-04-041-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make the MountManager strictRoeland Jago Douma2018-04-041-7/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Throw an exception if file_put_contents failsRoeland Jago Douma2018-03-272-1/+34
| | | | | | | | * This will help with AppData hardening etc * Introduced a GenericFileException for if nothing else is appropiate - Maybe the other File exceptions should base on this? Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add hint about OCP\Folder::getByIdMorris Jobke2018-03-211-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Hardening of SimpleFile getContentRoeland Jago Douma2018-02-271-0/+3
| | | | | | | if file_get_contents fails remove the file. And traverse up the tree checking if the other folders are there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix filename typoRobin Appelman2017-12-121-0/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #6220 from nextcloud/cached-mount-info-filepathLukas Reschke2017-11-092-1/+44
|\ | | | | Allow getting the filepath when getting cached mounts by fileid
| * Allow getting the filepath when getting cached mounts by fileidRobin Appelman2017-10-272-1/+44
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Update license headersMorris Jobke2017-11-0621-1/+31
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Doc: Fix phpDoc issuesJulius Härtl2017-10-231-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Replace wrong PHPDocsLukas Reschke2017-08-018-22/+18
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* AppData is no longer internalRoeland Jago Douma2017-08-014-4/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some phpstorm inspection fixesRoeland Jago Douma2017-07-221-5/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Added missing PHPDoc for @sinceMorris Jobke2017-06-211-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* show used space in user listRobin Appelman2017-06-151-0/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow apps to set custom mount typesRobin Appelman2017-04-281-0/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove unused use statementsMorris Jobke2017-04-222-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* limit the user when searching for a file by id if we know the user alreadyRobin Appelman2017-04-211-2/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix type hints and doc blocksJoas Schilling2017-03-231-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add ignore_files to config,Felix Heidecke2017-03-201-0/+6
| | | | | | | | | | | | | | | | test files against ignore_files list on upload fix typo and indentation Move blacklist declaration to lib/public/Files/FileInfo.php, Rename *ignored to *blacklisted Mocked blacklist_files for testing Mocked blacklist_files for testing Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #3600 from coletivoEITA/masterRoeland Jago Douma2017-03-141-0/+2
|\ | | | | added method needsPartFile() in Storage
| * added method needsPartFile() in StorageVinicius Cubas Brand2017-03-141-0/+2
| | | | | | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* | Allow searching for favoritesRobin Appelman2017-03-081-0/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add tests for searchQueryRobin Appelman2017-03-011-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Implement webdav SEARCHRobin Appelman2017-03-016-2/+50
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add icewind/searchdavRobin Appelman2017-02-285-0/+205
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add missing PHPDoc and properly throw exceptionMorris Jobke2017-02-132-0/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Add sinceRobin Appelman2017-01-273-0/+28
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add a more powerful notify mechanismRobin Appelman2017-01-274-0/+145
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | minor storage interface tweaksRobin Appelman2017-01-242-2/+3
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move the validation into one place onlyJoas Schilling2016-11-212-0/+62
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* @since 9.2.0 to @since 11.0.0Roeland Jago Douma2016-11-155-22/+22
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Storage 503 message improvementsVincent Petry2016-10-241-1/+1
| | | | | "Storage not available" is now "Storage temporarily not available". Exceptions are now logged in DEBUG level, not FATAL.
* optimize Folder::getById to use less queriesRobin Appelman2016-10-121-0/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add proper exception documentation for ISimpleFS interfaceMorris Jobke2016-10-051-0/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* avatar to appdataRoeland Jago Douma2016-10-051-0/+1
| | | | | | * Fix AvatarTest Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>