-
Notifications
You must be signed in to change notification settings - Fork 31
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
Allow uploading files while preserving the actual lastModified date #174
Comments
I'm on vacation right now, but I'll look into it when I'm back. Updating the date via props should definitely work, maybe you need to use a different format? |
I tried both |
Just tried this DateFormat but no luck DateFormat('E, d MMM yyyy HH:mm:ss', 'en_US').format(lastModified); |
Hey sorry, I didn't have the time yet. I hope I can look at it this or next week. |
There's no rush, this is a really low priority feature request from my end :) |
I found out that modifying the last modified time via the prop is not possible since it is readonly. The only way is to set it at upload time like I did it in the PR. |
My app Saber uses the last modified date of files to sync. Currently when a file is uploaded, its last modified date on the server is set to the upload time.
Proposition
Alternatives I've considered
I've tried setting the lastModified props like this, but it didn't show any change in the Nextcloud web interface.
nextcloud/server#15192
I'm not well-versed on Nextcloud but perhaps we need to use something other than webdav?
The Nextcloud desktop client sets the header like this:
The text was updated successfully, but these errors were encountered: