-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Upload: Preserve file modification timestamps #3942
Comments
See our User Guide FAQ at https://docs.photoprism.app/user-guide/faq/#metadata:
|
@cttlee So the feature request would be to preserve the local file system timestamps when using the web upload (which effectively creates new files on the server)? I suppose the local time could be read through the JS File API and then transferred along with the files to preserve the time e.g. similar to this:
If someone extends the frontend as needed and sends a pull request, I'd be happy to add support for preserving timestamps on the server side:
A suitable request header name for adding the information could be On the server, the code might look similar to how the "favorite" flag is preserved when uploading via WebDAV: photoprism/internal/server/routes_webdav.go Lines 76 to 82 in ff37fc2
|
Hi, does your web upload uses webdav protocol? FYI nextcloud uses |
We offer a WebDAV api you can use. See our documentation. The basic web upload does not use WebDAV though. |
OK, thanks for your info. I just saw the discussion for creation/modification timestamps over webdav happens here: #2550 |
Note that this is still experimental and the implementation needs to be tested with a WebDAV client that sends a valid "X-OC-MTime" header. Signed-off-by: Michael Mayer <michael@photoprism.app>
@cttlee I just added an experimental implementation for setting the mtime based on the Any help with testing will be much appreciated once an updated development preview is available. In the meantime, you can also test with the |
Signed-off-by: Michael Mayer <michael@photoprism.app>
Describe what problem this solves and why this would be valuable to many users
Describe the solution you'd like
Photoprism didn't use mtime as timestamp when no related exif info
Use mtime as timestamp as like google photo when no related exif info
The same logic can be found on immich as well
immich-app/immich#4188
Describe alternatives you've considered
Updating by exiftool manually was difficult since files were tens of thousands, also some video formats were not supported by exiftool and some files did not have exif such as screenshot pictures.
Additional context
The text was updated successfully, but these errors were encountered: