Adds the ability to export an album using streaming tar.

This commit is contained in:
2018-12-26 10:31:57 +01:00
parent 768f5ee529
commit 20db3561cf
3 changed files with 129 additions and 0 deletions

View File

@@ -61,7 +61,13 @@ class ViewPhotoAlbum extends HTMLController
// Can we do fancy things here?
// !!! TODO: permission system?
$buttons = [];
if (Registry::get('user')->isLoggedIn())
$buttons[] = [
'url' => BASEURL . '/download/?tag=' . $id_tag,
'caption' => 'Download this album',
];
$buttons[] = [
'url' => BASEURL . '/uploadmedia/?tag=' . $id_tag,
'caption' => 'Upload new photos here',