summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/appinfo
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-29 17:07:10 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-05-02 17:02:57 +0200
commit20893cc3b335049a144a53be24eaacb2e33a1480 (patch)
treec0795a4246bf6c38ec8b8ad9461e25b17ec9af74 /apps/files_trashbin/appinfo
parent49d9631eee1616b9ae2846886c3d428236c5b81a (diff)
downloadnextcloud-server-20893cc3b335049a144a53be24eaacb2e33a1480.tar.gz
nextcloud-server-20893cc3b335049a144a53be24eaacb2e33a1480.zip
Images on public sharing get downscaled to increase use experience - this will speed up loading time
- adding keep aspect to core/ajax/preview.php - remove duplicate method Preview::show() - no more hard coded mimetype of preview - remove .png from the preview urls - keep old route preview.png for backwards compatibility - aspect preserving previews are now cached
Diffstat (limited to 'apps/files_trashbin/appinfo')
-rw-r--r--apps/files_trashbin/appinfo/routes.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_trashbin/appinfo/routes.php b/apps/files_trashbin/appinfo/routes.php
index b1c3f02741e..42398a06c8b 100644
--- a/apps/files_trashbin/appinfo/routes.php
+++ b/apps/files_trashbin/appinfo/routes.php
@@ -1,5 +1,6 @@
<?php
-$this->create('core_ajax_trashbin_preview', '/preview.png')->action(
+/** @var $this \OCP\Route\IRouter */
+$this->create('core_ajax_trashbin_preview', '/preview')->action(
function() {
require_once __DIR__ . '/../ajax/preview.php';
-}); \ No newline at end of file
+});