Skip to content

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jul 13, 2023

Add documentation for nextcloud/server#27034

🖼️ Screenshots

image

Copy link
Member

@blizzz blizzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatting

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.
Copy link
Contributor

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?

@tflidd
Copy link
Contributor

tflidd commented Jul 17, 2023

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?

@juliusknorr
Copy link
Member Author

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

@juliusknorr
Copy link
Member Author

Added a note about expiring upload folders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants