feat(dev): Add algorithms supported by oc:checksum prop and OC-Checksum header

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin
2024-08-28 09:05:16 +02:00
parent 6bf7347020
commit bce0697bc1

View File

@@ -252,7 +252,10 @@ Supported properties
| | | | ``<nc:type>0</nc:type>`` |
| | | | ``</nc:sharee>`` |
+-------------------------------+-------------------------------------------------+--------------------------------------------------------------------------------------+
| <oc:checksums /> | An array of checksums. | ``<oc:checksum>md5:04c36b75222cd9fd47f2607333029106</oc:checksum>`` |
| <oc:checksums /> | An array of checksums stored in the DB by other | ``<oc:checksum>md5:04c36b75222cd9fd47f2607333029106</oc:checksum>`` |
| | clients. | |
| | Currently used algorithms are ``MD5``, ``SHA1``,| |
| | ``SHA256``, ``SHA3-256``, ``Adler32``. | |
+-------------------------------+-------------------------------------------------+--------------------------------------------------------------------------------------+
| <nc:has-preview /> | Whether a preview of the file is available. | ``true`` or ``false`` |
+-------------------------------+-------------------------------------------------+--------------------------------------------------------------------------------------+
@@ -463,6 +466,8 @@ You can set some special headers that Nextcloud will interpret.
+-----------------+-----------------------------------------------------------------+------------------------------------------+
| OC-Checksum | | A checksum that will be stored in the DB. | ``md5:04c36b75222cd9fd47f2607333029106`` |
| | | The server will not do any sort of validation. | |
| | | Currently used algorithms are ``MD5``, ``SHA1``, ``SHA256``, | |
| | | ``SHA3-256``, ``Adler32``. | |
+-----------------+-----------------------------------------------------------------+------------------------------------------+
| X-Hash | | Allow to request the file's hash from the server. | ``md5``, ``sha1``, or ``sha256`` |
| | | The server will return the hash in a header named either: | |