diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 6504de8438695c5cb2aaffbf9b590f2cf5f81ac6..d59f9b7401a4880a69ada39633da1b9fd72c6ada 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -149,6 +149,7 @@ if (isset($path)) { $tmpl->assign('mimetype', \OC\Files\Filesystem::getMimeType($path)); $tmpl->assign('fileTarget', basename($linkItem['file_target'])); $tmpl->assign('dirToken', $linkItem['token']); + $tmpl->assign('sharingToken', $token); $tmpl->assign('disableSharing', true); $allowPublicUploadEnabled = (bool) ($linkItem['permissions'] & OCP\PERMISSION_CREATE); if (\OCP\App::isEnabled('files_encryption')) { diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index ef4c1c433da21579ebb2a2c109a295818b2041ed..1d527dca8eb362532d51ef02d141a5bb0655eb82 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -6,6 +6,7 @@ <input type="hidden" id="isPublic" name="isPublic" value="1"> <input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir"> <input type="hidden" name="downloadURL" value="<?php p($_['downloadURL']) ?>" id="downloadURL"> +<input type="hidden" name="sharingToken" value="<?php p($_['sharingToken']) ?>" id="sharingToken"> <input type="hidden" name="filename" value="<?php p($_['filename']) ?>" id="filename"> <input type="hidden" name="mimetype" value="<?php p($_['mimetype']) ?>" id="mimetype"> <header><div id="header">