aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV/ImageExportPlugin.php
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Use Http framework where possibleuseHttpFrameworkGit'Fellow2024-12-141-3/+4
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix: return 204 instead of 404fix/issue-3021-return-no-content-instead-of-errorSebastianKrupinski2024-12-131-1/+1
| | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-4/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-271-21/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Stop sending deprecated Pragma headerGit'Fellow2023-08-281-1/+0
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change Content-Disposition HeaderJacob Neplokh2020-09-051-1/+2
| | | | | | | | | | - Make ALLOWED_CONTENT_TYPES public in order to use - Add $fileName variable which uses "$node->getName()" to get the proper file name and "$file->getMimeType()" along with the ALLOWED_CONTENT_TYPES array in PhotoCache.php to get the proper file extension - Make "$fileName" the name of the file in the Content-Disposition header when downloading a Contact's photo - Add filename to the CardDAV integration image export test header - Change headers in ImageExportPluginTest to reflect changes Signed-off-by: Jacob Neplokh <me@jacobneplokh.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | 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>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused import statementsMorris Jobke2018-02-141-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix ImageExportPluginTestRoeland Jago Douma2017-05-081-9/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* No more XSSRoeland Jago Douma2017-05-081-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Clear cache on vcard change/deleteRoeland Jago Douma2017-05-081-3/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Request proper size for contacts menuRoeland Jago Douma2017-05-081-72/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cache the carddav photo endpointRoeland Jago Douma2017-05-081-17/+40
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add caching to the imageexport pluginRoeland Jago Douma2017-05-021-0/+5
| | | | | | | | | | | Since we now heavily use this endpoint for the contacts menu we better set proper caching on the images. Else this gets reload over and over again leading to slow loading menu and unneded bytes transfered. * cache for 1 hour by default * added ETag for validation Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Filter more mimetypesLukas Reschke2016-09-091-0/+12
| | | | There's no need to allow more than those defined mimetypes for images.
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* fix a ImageExportPlugin Test (#25215)Georg Ehrke2016-06-271-2/+12
|
* Contacts API: replace raw image data with url (#25081)Georg Ehrke2016-06-211-0/+146
* add uri to AddressBookImpl array * Introduce ImageExportPlugin for CardDav * add plugin to v1 routes * replace binary contact photo with link * update tests * Adding unit tests