]> source.dussan.org Git - nextcloud-server.git/commit
Change Content-Disposition Header 21945/head
authorJacob Neplokh <me@jacobneplokh.com>
Sat, 5 Sep 2020 18:44:01 +0000 (11:44 -0700)
committerJacob Neplokh <me@jacobneplokh.com>
Sat, 5 Sep 2020 18:46:25 +0000 (11:46 -0700)
commite8a4feb1c646f39ca83c72ae493095c3d37b9eb6
tree1f2a21c8b07d01a4e680c28ca664d44ff0433eea
parent62ab3eb70016f57ced2dfccc7c095c3219c0cbf4
Change Content-Disposition Header

- 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>
apps/dav/lib/CardDAV/ImageExportPlugin.php
apps/dav/lib/CardDAV/PhotoCache.php
apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
build/integration/features/carddav.feature