You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b7cf093
Browse filesBrowse the repository at this point in the historyBrowse files
Document that the Destination header is required for MKCOL, chunk PUT, and final MOVE requests, but not for DELETE. Explain that deleting a Chunking v2 upload folder cancels the stored backend write and aborts supported multipart uploads before the temporary folder is removed.
Signed-off-by: Josh <josh.t.richards@gmail.com>
Copy file name to clipboardExpand all lines: developer_manual/client_apis/WebDAV/chunking.rst
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,24 @@ Uploading large files is always a bit problematic as your connection can be inte
12
12
which will fail your entire upload. Nextcloud has a chunking API where you can
13
13
upload smaller chunks which will be assembled on the server once they are all uploaded.
14
14
15
-
There are two versions of the chunking API. Version 1 is the original version and version 2 was built as a backward compatible extension to support uploads directly to supporting target storages like S3. Version 2 is the recommended version to use.
15
+
There are two versions of the chunking API. Version 1 is the original version and version
16
+
2 was built as a backward compatible extension to support uploads directly to supporting
17
+
target storages like S3. Version 2 is the recommended version to use.
16
18
17
-
Version 2 comes with a few additional requirements and limitations to consider (compared to version 1):
19
+
Version 2 comes with a few additional requirements and limitations to consider
20
+
(compared to version 1):
18
21
19
-
- Every request needs to have a ``Destination`` header present which specifies the target path of the file
22
+
- The ``MKCOL``, chunk ``PUT``, and final ``MOVE`` requests need to have a
23
+
``Destination`` header present which specifies the target path of the file
20
24
- The naming of the individual chunks is limited to be a number between 1 and 10000
21
25
- The chunks will be assembled in the order of their names
22
26
- The size of chunks must be between 5MB and 5GB (except for the last chunk, which can be smaller)
23
27
- Chunks cannot be downloaded from the upload directory
24
28
29
+
The ``Destination`` header is not required when aborting an upload with
30
+
``DELETE``. The destination and backend upload token are stored when the
31
+
upload is created.
32
+
25
33
Nextcloud will expire the upload directory after 24 hours of inactivity. This means that if you start an upload and do not finish it within 24 hours, the upload directory will be deleted and the upload will fail.
26
34
27
35
Chunked upload v2
@@ -108,9 +116,16 @@ The chunks and the temporary upload folder will be deleted afterwards.
108
116
Aborting the upload
109
117
-------------------
110
118
111
-
If the upload has to be aborted this is a simple matter or deleting the upload folder.
119
+
If the upload has to be aborted, delete the upload folder:
0 commit comments