diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index 00ec109621f..d7f479b504f 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -18,6 +18,10 @@
+
+
+
+
@@ -26,7 +30,7 @@
- >
+ >
@@ -44,7 +48,7 @@
class="hidden">t('Nothing in here. Upload something!'))?>
-
+
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index ae0a62f1034..e3d68955439 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -225,7 +225,8 @@ if (isset($path)) {
$folder->assign('fileList', $list->fetchPage());
$folder->assign('breadcrumb', $breadcrumbNav->fetchPage());
$folder->assign('dir', $getPath);
- $folder->assign('isCreatable', false);
+ $folder->assign('isCreatable', $allowPublicUploadEnabled);
+ $folder->assign('dirToken', $linkItem['token']);
$folder->assign('permissions', OCP\PERMISSION_READ);
$folder->assign('isPublic',true);
$folder->assign('publicUploadEnabled', 'no');
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 1d527dca8eb..d82e567182a 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -14,57 +14,7 @@
src="" alt="getName()); ?>" />
getLogoClaim()); ?>
-
-
-
-
-
-
-
-
-
+
t('shared by %s', array($_['displayName']))) ?>