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
I have enabled auto upload on my camera images and also enabled option that the files are moved from camera to NextCloud.
Now I discovered that if my images start at DSC_0001.JPG then after moving the next photo taken is named the same and when uploaded to NextCloud folder, it will not be named as "DSC_0001 (1).JPG" as was done in previous releases, but it will overwrite existing file.
For instance, I have now in my previous month's folder image DSC_0001.JPG with 10 different versions. I guess I will eventually lose data because some versions will be automatically removed by some internal clean-up logic, right?
Expected behaviour
Duplicate files should be uploaded with a different name.
Steps to reproduce
Enable auto upload of DCIM/100ANDRO folder for instance.
Set option "Original file will be... " to "moved to app folder"
Create new photo, let it be uploaded/moved to NextCloud
Create another photo that will be named the same as the previous one, let it be uploaded/moved to NextCloud
Environment data
Android version: 7.1.1
Device model: Sony Xperia Z5 Compact
Stock or customized system: stock
Nextcloud app version: 2.0.0
Nextcloud server version: 12.0.3
This looks like a major regression to me, is it currently being worked? I found out a lot of my pictures disappeared (thankfully old versions were saved but I have to copy and then restore which is annoying) because my camera had the same naming convention (DSC_0001, etc).
@atroxix Did you find a workaround since November?
@mario I remember that you assumed that if a file is uploaded and a file with the same file name is change/created that it is the same file and thus should be overwritten.
It seems that this assumption is not valid for all use / use cases.
To prevent data loss, it is better to never overwrite an existing (uploaded) file, though I do like the original idea…
If you manually upload the same (or changed) file, but with same file name, twice, it does not get overwritten, but appended a (2).
Overwriting a file without user confirmation, is maybe to hard for auto upload, unless we are really sure that it is the same (and changed) file.
Hi. Sorry for slow feedback. I didn't find a way to fix the issue, but as a workaround I just started cleaning up my folder of taken photos on monthly basis or so (since I keep uploaded photos in monthly folders).
This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!
I have exactly the same problem. I would have lost a lot of photos if the files version function would not have worked!
My usecase:
I use a smartphone where the stock camera names the images with the format DSC_0001.JPG. Since the device is unrooted, I can sadly not improve this ugly behaviour.
To save memory, I let the nextcloud client move the images to my SD card after uploading them.
How ever this makes the camera app to start at number 1 again and again.
The nextcloud app blindly overwrites the files on the server then...
NB:
The camera could directly write to the SD card, how ever this is not reliable and lead to issues sometimes (SD card not mounted).
Keeping the photos in the folder instead of moving them to the nextcloud client folder makes it hard to see which photos got already uploaded. I had used it this way but had experienced photos not uploaded and always a full internal memory.
Activity
papjul commentedon May 16, 2018
This looks like a major regression to me, is it currently being worked? I found out a lot of my pictures disappeared (thankfully old versions were saved but I have to copy and then restore which is annoying) because my camera had the same naming convention (DSC_0001, etc).
@atroxix Did you find a workaround since November?
tobiasKaminsky commentedon May 17, 2018
@mario I remember that you assumed that if a file is uploaded and a file with the same file name is change/created that it is the same file and thus should be overwritten.
It seems that this assumption is not valid for all use / use cases.
To prevent data loss, it is better to never overwrite an existing (uploaded) file, though I do like the original idea…
mario commentedon May 17, 2018
This is honestly a problem with the devices. Also, how else do you plan to upload changed files if not by overwriting?
tobiasKaminsky commentedon May 17, 2018
If you manually upload the same (or changed) file, but with same file name, twice, it does not get overwritten, but appended a (2).
Overwriting a file without user confirmation, is maybe to hard for auto upload, unless we are really sure that it is the same (and changed) file.
Unfortunately I do not have a solution either.
atroxix commentedon May 18, 2018
Hi. Sorry for slow feedback. I didn't find a way to fix the issue, but as a workaround I just started cleaning up my folder of taken photos on monthly basis or so (since I keep uploaded photos in monthly folders).
stale commentedon May 10, 2019
This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!
caco3 commentedon Sep 23, 2019
I have exactly the same problem. I would have lost a lot of photos if the files version function would not have worked!
My usecase:
I use a smartphone where the stock camera names the images with the format DSC_0001.JPG. Since the device is unrooted, I can sadly not improve this ugly behaviour.
To save memory, I let the nextcloud client move the images to my SD card after uploading them.
How ever this makes the camera app to start at number 1 again and again.
The nextcloud app blindly overwrites the files on the server then...
NB:
Suggested solutions:
caco3 commentedon Sep 23, 2019
Note: There is a still open duplicate of this issue under #1239