-
Notifications
You must be signed in to change notification settings - Fork 2.3k
enh(chunk): Add docs for chunked upload v2 #10740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
blizzz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
7780e83 to
e964a96
Compare
| If a modification time should be set, you can by adding it as header with date as unixtime: | ||
| ``curl -X MOVE -u roeland:pass --header 'X-OC-Mtime:1547545326' --header 'Destination:https://server/remote.php/dav/files/roeland/dest/file.zip' https://server/remote.php/dav/uploads/roeland/myapp-e1663913-4423-4efe-a9cd-26e7beeca3c0/.file``" | ||
| ``curl -X MOVE -u roeland:pass --header 'X-OC-Mtime:1547545326' --header 'Destination:https://server/remote.php/dav/files/roeland/dest/file.zip' https://server/remote.php/dav/uploads/roeland/myapp-e1663913-4423-4efe-a9cd-26e7beeca3c0/.file``" | ||
| Otherwise the current upload date will be used as modification date. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The upload date is the date of the first/last file uploaded or when the MOVE command is passed?
|
Nice comprehensible write-up with example code for this feature 👍 What is not clear, if your connection is interrupted and you want to continue to upload the data, how long will Nextcloud keep the chunks? There probably is some clean up routine. I imagine you can just check if the upload folder is still present (what was mentioned in the beginning). Perhaps too obvious? |
I'll clarify that, there is actually also depend on the storage (e.g. s3) policies how long the multipart uploads are kept. On the Nextcloud side we expire them after 24 hours |
Signed-off-by: Julius Härtl <[email protected]>
e964a96 to
d2b012c
Compare
|
Added a note about expiring upload folders |
Add documentation for nextcloud/server#27034
🖼️ Screenshots