aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/css/404.css2
-rw-r--r--apps/files_sharing/l10n/cs.js1
-rw-r--r--apps/files_sharing/l10n/cs.json1
-rw-r--r--apps/files_sharing/l10n/de.js1
-rw-r--r--apps/files_sharing/l10n/de.json1
-rw-r--r--apps/files_sharing/l10n/de_DE.js1
-rw-r--r--apps/files_sharing/l10n/de_DE.json1
-rw-r--r--apps/files_sharing/l10n/en_GB.js1
-rw-r--r--apps/files_sharing/l10n/en_GB.json1
-rw-r--r--apps/files_sharing/l10n/et_EE.js2
-rw-r--r--apps/files_sharing/l10n/et_EE.json2
-rw-r--r--apps/files_sharing/l10n/fa.js2
-rw-r--r--apps/files_sharing/l10n/fa.json2
-rw-r--r--apps/files_sharing/l10n/fr.js1
-rw-r--r--apps/files_sharing/l10n/fr.json1
-rw-r--r--apps/files_sharing/l10n/ja.js1
-rw-r--r--apps/files_sharing/l10n/ja.json1
-rw-r--r--apps/files_sharing/l10n/pt_BR.js1
-rw-r--r--apps/files_sharing/l10n/pt_BR.json1
-rw-r--r--apps/files_sharing/l10n/sr.js1
-rw-r--r--apps/files_sharing/l10n/sr.json1
-rw-r--r--apps/files_sharing/l10n/sv.js1
-rw-r--r--apps/files_sharing/l10n/sv.json1
-rw-r--r--apps/files_sharing/l10n/zh_CN.js1
-rw-r--r--apps/files_sharing/l10n/zh_CN.json1
-rw-r--r--apps/files_sharing/l10n/zh_HK.js1
-rw-r--r--apps/files_sharing/l10n/zh_HK.json1
-rw-r--r--apps/files_sharing/l10n/zh_TW.js1
-rw-r--r--apps/files_sharing/l10n/zh_TW.json1
-rw-r--r--apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php3
-rw-r--r--apps/files_sharing/src/files_views/publicFileDrop.ts7
-rw-r--r--apps/files_sharing/src/views/FilesViewFileDropEmptyContent.vue93
-rw-r--r--apps/files_sharing/tests/Controller/ShareControllerTest.php8
33 files changed, 125 insertions, 20 deletions
diff --git a/apps/files_sharing/css/404.css b/apps/files_sharing/css/404.css
index 160a8f83fc3..7542c7cfae1 100644
--- a/apps/files_sharing/css/404.css
+++ b/apps/files_sharing/css/404.css
@@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#body-login .error-broken-link{
- text-align:left;color:#fff;
+ text-align:start;color:#fff;
}
#body-login .error-broken-link ul{
diff --git a/apps/files_sharing/l10n/cs.js b/apps/files_sharing/l10n/cs.js
index ddd9f9e9319..97cb49425d6 100644
--- a/apps/files_sharing/l10n/cs.js
+++ b/apps/files_sharing/l10n/cs.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "Předání souboru",
"Upload files to {foldername}." : "Nahrát soubory do {foldername}",
"By uploading files, you agree to the terms of service." : "Nahráním souborů souhlasíte s podmínkami služby.",
+ "Successfully uploaded files" : "Soubory úspěšně nahrány",
"View terms of service" : "Zobrazit smluvní podmínky",
"Terms of service" : "Všeobecné podmínky",
"Upload files to {folder}" : "Nahrát soubory do {folder}",
diff --git a/apps/files_sharing/l10n/cs.json b/apps/files_sharing/l10n/cs.json
index b135d8e9e9e..b5f512d20e7 100644
--- a/apps/files_sharing/l10n/cs.json
+++ b/apps/files_sharing/l10n/cs.json
@@ -255,6 +255,7 @@
"File drop" : "Předání souboru",
"Upload files to {foldername}." : "Nahrát soubory do {foldername}",
"By uploading files, you agree to the terms of service." : "Nahráním souborů souhlasíte s podmínkami služby.",
+ "Successfully uploaded files" : "Soubory úspěšně nahrány",
"View terms of service" : "Zobrazit smluvní podmínky",
"Terms of service" : "Všeobecné podmínky",
"Upload files to {folder}" : "Nahrát soubory do {folder}",
diff --git a/apps/files_sharing/l10n/de.js b/apps/files_sharing/l10n/de.js
index ce2b7c73e3f..b2fb1dc3159 100644
--- a/apps/files_sharing/l10n/de.js
+++ b/apps/files_sharing/l10n/de.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "Dateiablage",
"Upload files to {foldername}." : "Dateien hochladen nach {foldername}.",
"By uploading files, you agree to the terms of service." : "Durch das Hochladen von Dateien stimmst du den Nutzungsbedingungen zu.",
+ "Successfully uploaded files" : "Dateien wurden hochgeladen",
"View terms of service" : "Nutzungsbedingungen anzeigen",
"Terms of service" : "Nutzungsbedingungen",
"Upload files to {folder}" : "Dateien hochladen nach {folder}",
diff --git a/apps/files_sharing/l10n/de.json b/apps/files_sharing/l10n/de.json
index 0dbe6cc8141..5edc31fe79c 100644
--- a/apps/files_sharing/l10n/de.json
+++ b/apps/files_sharing/l10n/de.json
@@ -255,6 +255,7 @@
"File drop" : "Dateiablage",
"Upload files to {foldername}." : "Dateien hochladen nach {foldername}.",
"By uploading files, you agree to the terms of service." : "Durch das Hochladen von Dateien stimmst du den Nutzungsbedingungen zu.",
+ "Successfully uploaded files" : "Dateien wurden hochgeladen",
"View terms of service" : "Nutzungsbedingungen anzeigen",
"Terms of service" : "Nutzungsbedingungen",
"Upload files to {folder}" : "Dateien hochladen nach {folder}",
diff --git a/apps/files_sharing/l10n/de_DE.js b/apps/files_sharing/l10n/de_DE.js
index c825e4c948f..69abf34bd75 100644
--- a/apps/files_sharing/l10n/de_DE.js
+++ b/apps/files_sharing/l10n/de_DE.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "Dateiablage",
"Upload files to {foldername}." : "Dateien hochladen nach {foldername}.",
"By uploading files, you agree to the terms of service." : "Durch das Hochladen von Dateien stimmen Sie den Nutzungsbedingungen zu.",
+ "Successfully uploaded files" : "Dateien wurden hochgeladen",
"View terms of service" : "Nutzungsbedingungen anzeigen",
"Terms of service" : "Nutzungsbedingungen",
"Upload files to {folder}" : "Dateien hochladen nach {folder}",
diff --git a/apps/files_sharing/l10n/de_DE.json b/apps/files_sharing/l10n/de_DE.json
index 19c796cfd66..33b5d08bade 100644
--- a/apps/files_sharing/l10n/de_DE.json
+++ b/apps/files_sharing/l10n/de_DE.json
@@ -255,6 +255,7 @@
"File drop" : "Dateiablage",
"Upload files to {foldername}." : "Dateien hochladen nach {foldername}.",
"By uploading files, you agree to the terms of service." : "Durch das Hochladen von Dateien stimmen Sie den Nutzungsbedingungen zu.",
+ "Successfully uploaded files" : "Dateien wurden hochgeladen",
"View terms of service" : "Nutzungsbedingungen anzeigen",
"Terms of service" : "Nutzungsbedingungen",
"Upload files to {folder}" : "Dateien hochladen nach {folder}",
diff --git a/apps/files_sharing/l10n/en_GB.js b/apps/files_sharing/l10n/en_GB.js
index dc48e5526ee..bfef88bf61a 100644
--- a/apps/files_sharing/l10n/en_GB.js
+++ b/apps/files_sharing/l10n/en_GB.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "File drop",
"Upload files to {foldername}." : "Upload files to {foldername}.",
"By uploading files, you agree to the terms of service." : "By uploading files, you agree to the terms of service.",
+ "Successfully uploaded files" : "Successfully uploaded files",
"View terms of service" : "View terms of service",
"Terms of service" : "Terms of service",
"Upload files to {folder}" : "Upload files to {folder}",
diff --git a/apps/files_sharing/l10n/en_GB.json b/apps/files_sharing/l10n/en_GB.json
index ae93f32a6b2..202aa25d2ad 100644
--- a/apps/files_sharing/l10n/en_GB.json
+++ b/apps/files_sharing/l10n/en_GB.json
@@ -255,6 +255,7 @@
"File drop" : "File drop",
"Upload files to {foldername}." : "Upload files to {foldername}.",
"By uploading files, you agree to the terms of service." : "By uploading files, you agree to the terms of service.",
+ "Successfully uploaded files" : "Successfully uploaded files",
"View terms of service" : "View terms of service",
"Terms of service" : "Terms of service",
"Upload files to {folder}" : "Upload files to {folder}",
diff --git a/apps/files_sharing/l10n/et_EE.js b/apps/files_sharing/l10n/et_EE.js
index bbf9425b62d..8c090e4c295 100644
--- a/apps/files_sharing/l10n/et_EE.js
+++ b/apps/files_sharing/l10n/et_EE.js
@@ -356,7 +356,7 @@ OC.L10N.register(
"File requests" : "Failipäringud",
"List of file requests." : "Failipäringute loend.",
"No file requests" : "Failipäringuid ei leidu",
- "File requests you have created will show up here" : "Sinu loodud failipäringus saavad olema nähtavad siin.",
+ "File requests you have created will show up here" : "Sinu loodud failipäringud saavad olema nähtavad siin.",
"Deleted shares" : "Kustutatud jagamised",
"List of shares you left." : "Jaosmeedia loend, kust sa oled lahkunud.",
"No deleted shares" : "Kustutatud jagamisi pole",
diff --git a/apps/files_sharing/l10n/et_EE.json b/apps/files_sharing/l10n/et_EE.json
index d5a086f454a..e6110e021b6 100644
--- a/apps/files_sharing/l10n/et_EE.json
+++ b/apps/files_sharing/l10n/et_EE.json
@@ -354,7 +354,7 @@
"File requests" : "Failipäringud",
"List of file requests." : "Failipäringute loend.",
"No file requests" : "Failipäringuid ei leidu",
- "File requests you have created will show up here" : "Sinu loodud failipäringus saavad olema nähtavad siin.",
+ "File requests you have created will show up here" : "Sinu loodud failipäringud saavad olema nähtavad siin.",
"Deleted shares" : "Kustutatud jagamised",
"List of shares you left." : "Jaosmeedia loend, kust sa oled lahkunud.",
"No deleted shares" : "Kustutatud jagamisi pole",
diff --git a/apps/files_sharing/l10n/fa.js b/apps/files_sharing/l10n/fa.js
index 21c1715227e..0981c98e95e 100644
--- a/apps/files_sharing/l10n/fa.js
+++ b/apps/files_sharing/l10n/fa.js
@@ -150,6 +150,7 @@ OC.L10N.register(
"Unable to fetch inherited shares" : "واگذاری سهام ارثی امکان پذیر نیست",
"Shares" : "اشتراک گذاری ها",
"Unable to load the shares list" : "لیست سهام بارگیری نمی شود",
+ "Expires {relativetime}" : "منقضی در {relativetime}",
"this share just expired." : "این اشتراک تازه منقضی شد",
"Shared with you by {owner}" : "به اشتراک گذاشته شده با شما توسط {owner}",
"Link to a file" : "پیوند به یک پرونده",
@@ -158,6 +159,7 @@ OC.L10N.register(
"_Reject share_::_Reject shares_" : ["Reject share","Reject shares"],
"_Restore share_::_Restore shares_" : ["Restore share","Restore shares"],
"Shared" : "به اشتراک گذاشته شده ",
+ "Shared multiple times with different people" : "Shared multiple times with different people",
"Shared with others" : "موارد به اشتراک گذاشته شده با دیگران",
"Public file share" : "اشتراک عمومی پرونده",
"Publicly shared file." : "پرونده بصورت عمومی به اشتراک گذاشته شده است",
diff --git a/apps/files_sharing/l10n/fa.json b/apps/files_sharing/l10n/fa.json
index 444d6173913..2e243499611 100644
--- a/apps/files_sharing/l10n/fa.json
+++ b/apps/files_sharing/l10n/fa.json
@@ -148,6 +148,7 @@
"Unable to fetch inherited shares" : "واگذاری سهام ارثی امکان پذیر نیست",
"Shares" : "اشتراک گذاری ها",
"Unable to load the shares list" : "لیست سهام بارگیری نمی شود",
+ "Expires {relativetime}" : "منقضی در {relativetime}",
"this share just expired." : "این اشتراک تازه منقضی شد",
"Shared with you by {owner}" : "به اشتراک گذاشته شده با شما توسط {owner}",
"Link to a file" : "پیوند به یک پرونده",
@@ -156,6 +157,7 @@
"_Reject share_::_Reject shares_" : ["Reject share","Reject shares"],
"_Restore share_::_Restore shares_" : ["Restore share","Restore shares"],
"Shared" : "به اشتراک گذاشته شده ",
+ "Shared multiple times with different people" : "Shared multiple times with different people",
"Shared with others" : "موارد به اشتراک گذاشته شده با دیگران",
"Public file share" : "اشتراک عمومی پرونده",
"Publicly shared file." : "پرونده بصورت عمومی به اشتراک گذاشته شده است",
diff --git a/apps/files_sharing/l10n/fr.js b/apps/files_sharing/l10n/fr.js
index 53adc1f132c..f99ebfc1530 100644
--- a/apps/files_sharing/l10n/fr.js
+++ b/apps/files_sharing/l10n/fr.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "Dépôt de fichier",
"Upload files to {foldername}." : "Téléverser les fichiers vers {foldername}.",
"By uploading files, you agree to the terms of service." : "En téléversant des fichiers, vous acceptez les conditions d'utilisation du service.",
+ "Successfully uploaded files" : "Fichiers téléversés avec succès",
"View terms of service" : "Voir les conditions d'utilisation du service",
"Terms of service" : "Conditions d'utilisation",
"Upload files to {folder}" : "Téléverser les fichiers dans {folder}",
diff --git a/apps/files_sharing/l10n/fr.json b/apps/files_sharing/l10n/fr.json
index 58055c96295..ecec9e15f07 100644
--- a/apps/files_sharing/l10n/fr.json
+++ b/apps/files_sharing/l10n/fr.json
@@ -255,6 +255,7 @@
"File drop" : "Dépôt de fichier",
"Upload files to {foldername}." : "Téléverser les fichiers vers {foldername}.",
"By uploading files, you agree to the terms of service." : "En téléversant des fichiers, vous acceptez les conditions d'utilisation du service.",
+ "Successfully uploaded files" : "Fichiers téléversés avec succès",
"View terms of service" : "Voir les conditions d'utilisation du service",
"Terms of service" : "Conditions d'utilisation",
"Upload files to {folder}" : "Téléverser les fichiers dans {folder}",
diff --git a/apps/files_sharing/l10n/ja.js b/apps/files_sharing/l10n/ja.js
index 3c82171b04b..6185d4fcfc2 100644
--- a/apps/files_sharing/l10n/ja.js
+++ b/apps/files_sharing/l10n/ja.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "ファイルを転送",
"Upload files to {foldername}." : "{foldername}にファイルをアップロード",
"By uploading files, you agree to the terms of service." : "ファイルをアップロードすることで、利用規約に同意したことになります。",
+ "Successfully uploaded files" : "ファイルのアップロードに成功しました",
"View terms of service" : "利用規約を見る",
"Terms of service" : "サービス利用規約",
"Upload files to {folder}" : "{folder}にファイルをアップロード",
diff --git a/apps/files_sharing/l10n/ja.json b/apps/files_sharing/l10n/ja.json
index 30b967a6848..fe3629aa4da 100644
--- a/apps/files_sharing/l10n/ja.json
+++ b/apps/files_sharing/l10n/ja.json
@@ -255,6 +255,7 @@
"File drop" : "ファイルを転送",
"Upload files to {foldername}." : "{foldername}にファイルをアップロード",
"By uploading files, you agree to the terms of service." : "ファイルをアップロードすることで、利用規約に同意したことになります。",
+ "Successfully uploaded files" : "ファイルのアップロードに成功しました",
"View terms of service" : "利用規約を見る",
"Terms of service" : "サービス利用規約",
"Upload files to {folder}" : "{folder}にファイルをアップロード",
diff --git a/apps/files_sharing/l10n/pt_BR.js b/apps/files_sharing/l10n/pt_BR.js
index f75b225aae5..b8c05daa750 100644
--- a/apps/files_sharing/l10n/pt_BR.js
+++ b/apps/files_sharing/l10n/pt_BR.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "Depósito de arquivos",
"Upload files to {foldername}." : "Subir arquivos para {foldername}.",
"By uploading files, you agree to the terms of service." : "Ao enviar arquivos, você concorda com os termos de serviço.",
+ "Successfully uploaded files" : "Arquivos carregados com sucesso",
"View terms of service" : "Ver os termos de serviço",
"Terms of service" : "Termos de serviço",
"Upload files to {folder}" : "Enviar arquivos para {folder}",
diff --git a/apps/files_sharing/l10n/pt_BR.json b/apps/files_sharing/l10n/pt_BR.json
index d1b9e77d278..827e07c452b 100644
--- a/apps/files_sharing/l10n/pt_BR.json
+++ b/apps/files_sharing/l10n/pt_BR.json
@@ -255,6 +255,7 @@
"File drop" : "Depósito de arquivos",
"Upload files to {foldername}." : "Subir arquivos para {foldername}.",
"By uploading files, you agree to the terms of service." : "Ao enviar arquivos, você concorda com os termos de serviço.",
+ "Successfully uploaded files" : "Arquivos carregados com sucesso",
"View terms of service" : "Ver os termos de serviço",
"Terms of service" : "Termos de serviço",
"Upload files to {folder}" : "Enviar arquivos para {folder}",
diff --git a/apps/files_sharing/l10n/sr.js b/apps/files_sharing/l10n/sr.js
index 48323c82d47..4a2c7230e0e 100644
--- a/apps/files_sharing/l10n/sr.js
+++ b/apps/files_sharing/l10n/sr.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "Место за упуштање фајлова",
"Upload files to {foldername}." : "Отпреми фајлове у {foldername}.",
"By uploading files, you agree to the terms of service." : "Отпремањем фајлова, слажете се са условима коришћења.",
+ "Successfully uploaded files" : "Фајлови су успешно отпремљени",
"View terms of service" : "Прикажи услове коришћења",
"Terms of service" : "Услови коришћења",
"Upload files to {folder}" : "Отпреми фајлове у {folder}",
diff --git a/apps/files_sharing/l10n/sr.json b/apps/files_sharing/l10n/sr.json
index 04897bc3598..64fb1ab2187 100644
--- a/apps/files_sharing/l10n/sr.json
+++ b/apps/files_sharing/l10n/sr.json
@@ -255,6 +255,7 @@
"File drop" : "Место за упуштање фајлова",
"Upload files to {foldername}." : "Отпреми фајлове у {foldername}.",
"By uploading files, you agree to the terms of service." : "Отпремањем фајлова, слажете се са условима коришћења.",
+ "Successfully uploaded files" : "Фајлови су успешно отпремљени",
"View terms of service" : "Прикажи услове коришћења",
"Terms of service" : "Услови коришћења",
"Upload files to {folder}" : "Отпреми фајлове у {folder}",
diff --git a/apps/files_sharing/l10n/sv.js b/apps/files_sharing/l10n/sv.js
index e5af3c5e4c3..afd677b187b 100644
--- a/apps/files_sharing/l10n/sv.js
+++ b/apps/files_sharing/l10n/sv.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "Filinkast",
"Upload files to {foldername}." : "Ladda upp filer till {foldername}.",
"By uploading files, you agree to the terms of service." : "Genom att ladda upp filer godkänner du användarvillkoren.",
+ "Successfully uploaded files" : "Filer har laddats upp",
"View terms of service" : "Visa användarvillkoren",
"Terms of service" : "Användarvillkor",
"Upload files to {folder}" : "Ladda upp filer till {folder}",
diff --git a/apps/files_sharing/l10n/sv.json b/apps/files_sharing/l10n/sv.json
index 8be901a9c3d..89e44650c43 100644
--- a/apps/files_sharing/l10n/sv.json
+++ b/apps/files_sharing/l10n/sv.json
@@ -255,6 +255,7 @@
"File drop" : "Filinkast",
"Upload files to {foldername}." : "Ladda upp filer till {foldername}.",
"By uploading files, you agree to the terms of service." : "Genom att ladda upp filer godkänner du användarvillkoren.",
+ "Successfully uploaded files" : "Filer har laddats upp",
"View terms of service" : "Visa användarvillkoren",
"Terms of service" : "Användarvillkor",
"Upload files to {folder}" : "Ladda upp filer till {folder}",
diff --git a/apps/files_sharing/l10n/zh_CN.js b/apps/files_sharing/l10n/zh_CN.js
index 404be9f7ab4..5d051eb9950 100644
--- a/apps/files_sharing/l10n/zh_CN.js
+++ b/apps/files_sharing/l10n/zh_CN.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "文件拖放",
"Upload files to {foldername}." : "将文件上传到 {foldername}。",
"By uploading files, you agree to the terms of service." : "上传文件即表示您同意服务条款。",
+ "Successfully uploaded files" : "已成功上传文件",
"View terms of service" : "查看服务条款",
"Terms of service" : "服务条款",
"Upload files to {folder}" : "将文件上传到 {folder}",
diff --git a/apps/files_sharing/l10n/zh_CN.json b/apps/files_sharing/l10n/zh_CN.json
index 2ea3efde3bb..5cd693a66be 100644
--- a/apps/files_sharing/l10n/zh_CN.json
+++ b/apps/files_sharing/l10n/zh_CN.json
@@ -255,6 +255,7 @@
"File drop" : "文件拖放",
"Upload files to {foldername}." : "将文件上传到 {foldername}。",
"By uploading files, you agree to the terms of service." : "上传文件即表示您同意服务条款。",
+ "Successfully uploaded files" : "已成功上传文件",
"View terms of service" : "查看服务条款",
"Terms of service" : "服务条款",
"Upload files to {folder}" : "将文件上传到 {folder}",
diff --git a/apps/files_sharing/l10n/zh_HK.js b/apps/files_sharing/l10n/zh_HK.js
index dd435890210..b06485d52ae 100644
--- a/apps/files_sharing/l10n/zh_HK.js
+++ b/apps/files_sharing/l10n/zh_HK.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "檔案拖放",
"Upload files to {foldername}." : "上傳檔案至 {foldername}。",
"By uploading files, you agree to the terms of service." : "上傳檔案即表示您同意服務條款。",
+ "Successfully uploaded files" : "檔案上傳成功",
"View terms of service" : "檢視服務條款",
"Terms of service" : "服務條款",
"Upload files to {folder}" : "上傳檔案到 {folder}",
diff --git a/apps/files_sharing/l10n/zh_HK.json b/apps/files_sharing/l10n/zh_HK.json
index 4f6fe38e858..67d1f31894f 100644
--- a/apps/files_sharing/l10n/zh_HK.json
+++ b/apps/files_sharing/l10n/zh_HK.json
@@ -255,6 +255,7 @@
"File drop" : "檔案拖放",
"Upload files to {foldername}." : "上傳檔案至 {foldername}。",
"By uploading files, you agree to the terms of service." : "上傳檔案即表示您同意服務條款。",
+ "Successfully uploaded files" : "檔案上傳成功",
"View terms of service" : "檢視服務條款",
"Terms of service" : "服務條款",
"Upload files to {folder}" : "上傳檔案到 {folder}",
diff --git a/apps/files_sharing/l10n/zh_TW.js b/apps/files_sharing/l10n/zh_TW.js
index fc86c1306e7..9f2a7ae3b85 100644
--- a/apps/files_sharing/l10n/zh_TW.js
+++ b/apps/files_sharing/l10n/zh_TW.js
@@ -257,6 +257,7 @@ OC.L10N.register(
"File drop" : "檔案投遞",
"Upload files to {foldername}." : "上傳檔案至 {foldername}。",
"By uploading files, you agree to the terms of service." : "上傳檔案即表示您同意服務條款。",
+ "Successfully uploaded files" : "已成功上傳檔案",
"View terms of service" : "檢視服務條款",
"Terms of service" : "服務條款",
"Upload files to {folder}" : "上傳檔案到 {folder}",
diff --git a/apps/files_sharing/l10n/zh_TW.json b/apps/files_sharing/l10n/zh_TW.json
index af5b6ecabf5..35e7ec603d5 100644
--- a/apps/files_sharing/l10n/zh_TW.json
+++ b/apps/files_sharing/l10n/zh_TW.json
@@ -255,6 +255,7 @@
"File drop" : "檔案投遞",
"Upload files to {foldername}." : "上傳檔案至 {foldername}。",
"By uploading files, you agree to the terms of service." : "上傳檔案即表示您同意服務條款。",
+ "Successfully uploaded files" : "已成功上傳檔案",
"View terms of service" : "檢視服務條款",
"Terms of service" : "服務條款",
"Upload files to {folder}" : "上傳檔案到 {folder}",
diff --git a/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php b/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php
index 910d00a5972..645250ab2b5 100644
--- a/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php
+++ b/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php
@@ -91,6 +91,9 @@ class DefaultPublicShareTemplateProvider implements IPublicShareTemplateProvider
'disclaimer',
$this->appConfig->getValueString('core', 'shareapi_public_link_disclaimertext'),
);
+ // file drops do not request the root folder so we need to provide label and note if available
+ $this->initialState->provideInitialState('label', $share->getLabel());
+ $this->initialState->provideInitialState('note', $share->getNote());
}
// Set up initial state
$this->initialState->provideInitialState('isPublic', true);
diff --git a/apps/files_sharing/src/files_views/publicFileDrop.ts b/apps/files_sharing/src/files_views/publicFileDrop.ts
index 0d782d48fc7..65756e83c74 100644
--- a/apps/files_sharing/src/files_views/publicFileDrop.ts
+++ b/apps/files_sharing/src/files_views/publicFileDrop.ts
@@ -4,7 +4,8 @@
*/
import type { VueConstructor } from 'vue'
-import { Folder, Permission, View, davRemoteURL, davRootPath, getNavigation } from '@nextcloud/files'
+import { Folder, Permission, View, getNavigation } from '@nextcloud/files'
+import { defaultRemoteURL, defaultRootPath } from '@nextcloud/files/dav'
import { loadState } from '@nextcloud/initial-state'
import { translate as t } from '@nextcloud/l10n'
import svgCloudUpload from '@mdi/svg/svg/cloud-upload.svg?raw'
@@ -45,8 +46,8 @@ export default () => {
// Fake a writeonly folder as root
folder: new Folder({
id: 0,
- source: `${davRemoteURL}${davRootPath}`,
- root: davRootPath,
+ source: `${defaultRemoteURL}${defaultRootPath}`,
+ root: defaultRootPath,
owner: null,
permissions: Permission.CREATE,
}),
diff --git a/apps/files_sharing/src/views/FilesViewFileDropEmptyContent.vue b/apps/files_sharing/src/views/FilesViewFileDropEmptyContent.vue
index 5571e5e9f5d..33fec9af028 100644
--- a/apps/files_sharing/src/views/FilesViewFileDropEmptyContent.vue
+++ b/apps/files_sharing/src/views/FilesViewFileDropEmptyContent.vue
@@ -5,13 +5,29 @@
<template>
<NcEmptyContent class="file-drop-empty-content"
data-cy-files-sharing-file-drop
- :name="t('files_sharing', 'File drop')">
+ :name="name">
<template #icon>
<NcIconSvgWrapper :svg="svgCloudUpload" />
</template>
<template #description>
- {{ t('files_sharing', 'Upload files to {foldername}.', { foldername }) }}
- {{ disclaimer === '' ? '' : t('files_sharing', 'By uploading files, you agree to the terms of service.') }}
+ <p>
+ {{ shareNote || t('files_sharing', 'Upload files to {foldername}.', { foldername }) }}
+ </p>
+ <p v-if="disclaimer">
+ {{ t('files_sharing', 'By uploading files, you agree to the terms of service.') }}
+ </p>
+ <NcNoteCard v-if="getSortedUploads().length"
+ class="file-drop-empty-content__note-card"
+ type="success">
+ <h2 id="file-drop-empty-content__heading">
+ {{ t('files_sharing', 'Successfully uploaded files') }}
+ </h2>
+ <ul aria-labelledby="file-drop-empty-content__heading" class="file-drop-empty-content__list">
+ <li v-for="file in getSortedUploads()" :key="file">
+ {{ file }}
+ </li>
+ </ul>
+ </NcNoteCard>
</template>
<template #action>
<template v-if="disclaimer">
@@ -34,16 +50,24 @@
</NcEmptyContent>
</template>
+<script lang="ts">
+/* eslint-disable import/first */
+
+// We need this on module level rather than on the instance as view will be refreshed by the files app after uploading
+const uploads = new Set<string>()
+</script>
+
<script setup lang="ts">
import { loadState } from '@nextcloud/initial-state'
import { translate as t } from '@nextcloud/l10n'
-import { getUploader, UploadPicker } from '@nextcloud/upload'
+import { getUploader, UploadPicker, UploadStatus } from '@nextcloud/upload'
import { ref } from 'vue'
import NcButton from '@nextcloud/vue/components/NcButton'
import NcDialog from '@nextcloud/vue/components/NcDialog'
import NcEmptyContent from '@nextcloud/vue/components/NcEmptyContent'
import NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper'
+import NcNoteCard from '@nextcloud/vue/components/NcNoteCard'
import svgCloudUpload from '@mdi/svg/svg/cloud-upload.svg?raw'
defineProps<{
@@ -51,17 +75,62 @@ defineProps<{
}>()
const disclaimer = loadState<string>('files_sharing', 'disclaimer', '')
+const shareLabel = loadState<string>('files_sharing', 'label', '')
+const shareNote = loadState<string>('files_sharing', 'note', '')
+
+const name = shareLabel || t('files_sharing', 'File drop')
+
const showDialog = ref(false)
const uploadDestination = getUploader().destination
-</script>
-<style scoped>
-:deep(.terms-of-service-dialog) {
- min-height: min(100px, 20vh);
+getUploader()
+ .addNotifier((upload) => {
+ if (upload.status === UploadStatus.FINISHED && upload.file.name) {
+ // if a upload is finished and is not a meta upload (name is set)
+ // then we add the upload to the list of finished uploads to be shown to the user
+ uploads.add(upload.file.name)
+ }
+ })
+
+/**
+ * Get the previous uploads as sorted list
+ */
+function getSortedUploads() {
+ return [...uploads].sort((a, b) => a.localeCompare(b))
}
-/* TODO fix in library */
-.file-drop-empty-content :deep(.empty-content__action) {
- display: flex;
- gap: var(--default-grid-baseline);
+</script>
+
+<style scoped lang="scss">
+.file-drop-empty-content {
+ margin: auto;
+ max-width: max(50vw, 300px);
+
+ .file-drop-empty-content__note-card {
+ width: fit-content;
+ margin-inline: auto;
+ }
+
+ #file-drop-empty-content__heading {
+ margin-block: 0 10px;
+ font-weight: bold;
+ font-size: 20px;
+ }
+
+ .file-drop-empty-content__list {
+ list-style: inside;
+ max-height: min(350px, 33vh);
+ overflow-y: scroll;
+ padding-inline-end: calc(2 * var(--default-grid-baseline));
+ }
+
+ :deep(.terms-of-service-dialog) {
+ min-height: min(100px, 20vh);
+ }
+
+ /* TODO fix in library */
+ :deep(.empty-content__action) {
+ display: flex;
+ gap: var(--default-grid-baseline);
+ }
}
</style>
diff --git a/apps/files_sharing/tests/Controller/ShareControllerTest.php b/apps/files_sharing/tests/Controller/ShareControllerTest.php
index 524336787cb..a6bef1bed56 100644
--- a/apps/files_sharing/tests/Controller/ShareControllerTest.php
+++ b/apps/files_sharing/tests/Controller/ShareControllerTest.php
@@ -399,6 +399,8 @@ class ShareControllerTest extends \Test\TestCase {
->setPassword('password')
->setShareOwner('ownerUID')
->setSharedBy('initiatorUID')
+ ->setNote('The note')
+ ->setLabel('A label')
->setNode($file)
->setTarget("/$filename")
->setToken('token');
@@ -478,6 +480,8 @@ class ShareControllerTest extends \Test\TestCase {
'disclaimer' => 'My disclaimer text',
'owner' => 'ownerUID',
'ownerDisplayName' => 'ownerDisplay',
+ 'note' => 'The note',
+ 'label' => 'A label',
];
$response = $this->shareController->showShare();
@@ -487,9 +491,9 @@ class ShareControllerTest extends \Test\TestCase {
$csp = new ContentSecurityPolicy();
$csp->addAllowedFrameDomain('\'self\'');
$expectedResponse = new PublicTemplateResponse('files', 'index');
- $expectedResponse->setParams(['pageTitle' => $filename]);
+ $expectedResponse->setParams(['pageTitle' => 'A label']);
$expectedResponse->setContentSecurityPolicy($csp);
- $expectedResponse->setHeaderTitle($filename);
+ $expectedResponse->setHeaderTitle('A label');
$expectedResponse->setHeaderDetails('shared by ownerDisplay');
$expectedResponse->setHeaderActions([
new LinkMenuAction($this->l10n->t('Direct link'), 'icon-public', 'shareUrl'),