summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/files.php
Commit message (Collapse)AuthorAgeFilesLines
* Move legacy classes from PSR0 to PSR4Christoph Wurst2020-04-071-434/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-9/+9
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 18Christoph Wurst2019-12-201-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* when downloading from web, skip files that are not accessibleArthur Schiwon2019-12-191-2/+6
| | | | | | | * avoids a 403, but enables download of resources that are not restricted * single file downloads still cause 403 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use files node API for single file downloadsJulius Härtl2019-12-191-14/+28
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headersChristoph Wurst2019-12-051-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* switch to Files Node API for zip generationArthur Schiwon2019-11-071-4/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove the upload and memory settingJoas Schilling2019-03-041-82/+0
| | | | | | | | | | * Remove unneeded private method phpFileSize() * Bump autoloader * Remove setUploadLimit tests * Remove integrity check hacks for upload limit Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Replace hardcoded status headers with calls to http_response_code()Morris Jobke2018-06-261-4/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Server error/hint pages with a 500 error code to avoid it being seen instead ↵Morris Jobke2018-06-261-3/+3
| | | | | | | | | of the actual resource * found while reviewing #7205 * allow to specify a special status code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* move log constants to ILoggerArthur Schiwon2018-04-261-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use zip32 only if there are less than 65536 filesDaniel Calviño Sánchez2018-04-061-4/+33
| | | | | | | A zip32 file can contain, at most, 65535 files (and folders), so take that constraint into account. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Use zip32 if possibleRoeland Jago Douma2018-04-061-3/+14
| | | | | | | | | * OSX doesn't handle 64zip that well * Some other implentations don't handle it perfectly either * If the file is belog 4GiB (some overhead) => zip32 * This covers the 99% case I bet Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use normal header() calls instead of private method callsMorris Jobke2018-02-191-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use type casting instead of *val() methodMorris Jobke2018-01-261-2/+2
| | | | | | It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7075 from nextcloud/remove-unused-variablesRoeland Jago Douma2017-11-071-1/+1
|\ | | | | Remove unused variables
| * Remove unused variablesMorris Jobke2017-11-061-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Update license headersMorris Jobke2017-11-061-0/+2
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* HTTP 1.1 used when giving 403 and 404 errors while attempting to download ↵noveens2017-03-191-2/+2
| | | | | | non-existent file Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Check that set_time_limit is not disabled before calling itKo-2017-03-111-1/+3
| | | | Signed-off-by: Ko- <k.stoffelen@cs.ru.nl>
* Prevent PHP request to get killed when using fclose callback (#26775)Vincent Petry2017-01-231-0/+1
| | | | | | | | * Prevent PHP request to get killed when using fclose callback * Add ignore_user_abort everywhere where the time limit is set to 0 Signed-off-by: Robin Appelman <robin@icewind.nl>
* Keep the filemtime for files when downloading them in a zip/tarJoas Schilling2016-11-281-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-2/+3
|
* [master] Use explode() instead of split()Lukas Reschke2016-07-201-1/+1
| | | | Sync from https://github.com/owncloud/core/pull/25488
* Update license headersLukas Reschke2016-05-261-4/+5
|
* Code style and doc fixPiotr Filiciak2016-05-231-6/+6
|
* Http Range requests support in downloadsPiotr Filiciak2016-05-201-12/+131
| | | | Http range requests support is required for video preview
* Move non PSR-4 files from lib/private root to legacyRoeland Jago Douma2016-04-301-0/+316
As discussed we move all old style classes (OC_FOO_BAR) to legacy. Then from there we can evaluate the need to convert them back or if they can be fully deprecated/deleted.