From 53ead2543d08ee018a59df8527be279df757b53f Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 27 Apr 2025 14:24:07 +0200 Subject: [PATCH] feat(developer): document `hide-download` WebDAV property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ferdinand Thiessen Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen --- .../app_upgrade_guide/upgrade_to_31.rst | 15 +-------------- developer_manual/client_apis/WebDAV/basic.rst | 3 +++ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst index 487417608..a9f62ee5e 100644 --- a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst +++ b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst @@ -2,11 +2,6 @@ Upgrade to Nextcloud 31 ======================= -General -------- - -- TBD - Front-end changes ----------------- @@ -51,15 +46,6 @@ to check whether the current Files app instance is a public share or not, and if console.info('This is a public share with the sharing token: ', getSharingToken()) } -Added APIs -^^^^^^^^^^ - -Changed APIs -^^^^^^^^^^^^ - -Deprecated APIs -^^^^^^^^^^^^^^^ - Removed APIs ^^^^^^^^^^^^ @@ -126,6 +112,7 @@ Added APIs - New interface ``OCP\Files\Storage\IConstructableStorage`` for storages that can be built by passing only an array to the constructor. - New service ``OCP\RichObjectStrings\IRichTextFormatter`` to format rich text into parsed plain text using its ``richToParsed`` method. - New magic query parameter ``forceLanguage`` to force a specific language for a web request (API or frontend). See :ref:`Forcing language for a given call`. +- The new WebDAV property ``nc:hide-download`` was added to indicate if download actions should be hidden for a shared file or folder. Changed APIs ^^^^^^^^^^^^ diff --git a/developer_manual/client_apis/WebDAV/basic.rst b/developer_manual/client_apis/WebDAV/basic.rst index 24da0c32a..e954b45e7 100644 --- a/developer_manual/client_apis/WebDAV/basic.rst +++ b/developer_manual/client_apis/WebDAV/basic.rst @@ -215,6 +215,9 @@ Supported properties | | | | ``'external'`` = external storage | | | | | ``'external-session'`` = external storage | +-------------------------------+-------------------------------------------------+--------------------------------------------------------------------------------------+ +| | For shares this indicate if any download action | ``true`` or ``false`` | +| | should be hidden from the user or not. | | ++-------------------------------+-------------------------------------------------+--------------------------------------------------------------------------------------+ | | Whether the folder is end-to-end encrypted. | | ``0`` for ``false`` | | | | | ``1`` for ``true`` | +-------------------------------+-------------------------------------------------+--------------------------------------------------------------------------------------+