feature request: auto-rename for Photo-upload
I think it would be a good improvement if automaticly uploaded photos get renamed like: yyyy_mm_dd_time or something like this.
:+1:
I often depend on the file name to know whether any of the thousands of files on one of my devices is duplicated in ownCloud or not. Changing the filename automatically would be quite problematic for me if it couldn't be disabled.
Agree on that it should be an option.
I started to work on this, on an opt-in basis.
This doesn’t seem like a good idea for reasons @bugsbane mentioned. If we make it configurable it would also introduce confusion about which photo is which. This is not something which should be handled by a simple file syncing app.
Maybe @marlboro2k can explain why he needs this feature. In my opinion sorting the folder by date is sufficient.
i know this already from my dropbox and i was rly happy with it, because if you have a folder with thousands of pics from different days and events u can easily find them and normaly owncloud does not sync the pic folder of my android. i miss this feature in owncloud. it would be ok if this is an option that i could enable
@marlboro2k to help, can you describe and supply screenshots of how Dropbox does it? Would also be cool to have the working of Google Drive on this issue for comparison. Thanks!
@jancborchardt Sorry if I sound harsh now, but if Dropbox have it, we should have it? Then I really think that we should introduce #588 :)
@Bugsbane The renaming conflict with multiple device would dissolve if the photo is also renamed on the device taking the photo, right? Then there would be not problem for two-way-sync, either.
I still do not understand the use case @marlboro2k described. If I search one specific image and I do not know its name, but I know the date and roughly the time I can sort in:
- Webfrontend
- PC: each file browser supports this; sync is done via mirall
- Android app (this feature is done by me (https://github.com/owncloud/android/pull/624), needs a little cleanup and will be soon there I guess.
(Uh. And by the way: My phone automatically saves new images as IMG_yyyymmdd_hhmmss.jpg (com.android.camera2))
@jancborchardt Sorry if I sound harsh now, but if Dropbox have it, we should have it?
@enoch85 no, but we should at least do some research of how some established competitors do it. We will still decide what to do independently from that. That’s just intelligent to not repeat mistakes.
And yeah, I agree with @tobiasKaminsky's confusion here. The sort by date done through #624 seems to solve this.
@jancborchardt on dropbox pictures stay with own name on the phone and on auto upload it will be renamed on dropbox and pc like yyyy-mm-dd hh.mm.ss -> http://goo.gl/ZVL80Q . google drive has actually no auto foto upload, you can only do this with an extra app. and my phone now saves this pictures like this DSC_001.jpg -> http://goo.gl/JL3yKe
sry for my bad engl.
@jancborchardt
no, but we should at least do some research of how some established competitors do it. We will still decide what to do independently from that. That’s just intelligent to not repeat mistakes.
Agree. At the same time we can also become better than the competition. ;)
There was a similar discussion for the IOS app -> owncloud/ios-issues#57 Personally I would say to adapt the Android app to the current implementation of the IOS app to have a consistent behavior within the ownCloud solution.
And the renaming should only happen if you directly upload photos from the camera, not on the regular file upload.
@LukeOwncloud - If the file name were changed on the original device (in my case my phone) it would be better, but still problematic, as sometimes I use upload on WiFi only and sometimes by the time I'm at my WiFi, I may have already made a copy of the picture elsewhere (such as emailing it to a friend). Also the original file name keeps some useful information such as the order in which the photos were taken.
My prefered way of dealing with all of this would be for ownCloud to change and display the photo's title in the ID3 tag, rather than it's file name per se. This way, the file name can still be used to determine duplicates (although use of some kind of hash based on the image itself would be cool), but it's possible to see more human readable names in ownCloud.
The more I think about it, the more problematic renaming seems:
- if photo is renamed right after taking it, problem with (pre-)viewing would occur.
- when renaming it after upload, the file may already have be shared (e.g. via email) with the wrong name.
- when taking two pictures the very same instance on two devices, both pictures would get the same name (so nothing won here, could also happen without renaming).
- about the confusion that might occur when switching this option on and off (i.e., if it is an option) I do not even want to think about.
And as @tobiasKaminsky pointed out, there are sorting options in all programs which can sort photos by date. Finally, renaming is not the job of a syncing tool.
If someone still wants to have a special format for photo filenames, a camera app should be used which supports that. E.g. https://play.google.com/store/apps/details?id=com.pr.fsacamera Also this renaming tool can be used: https://play.google.com/store/apps/details?id=ro.ciubex.dscautorename
@jancborchardt Whats the policy for closing feature requests? Should there be some kind of vote?
@davivel @tobiasKaminsky what do you think ^
I think it is a nothing owncloud should handle as the app which creates the files should cope with. The main purpose of our app is file sync and we should keep the focus on this. And as pointed out by @LukeOwncloud it can soon become very complicated...
After carefully considering all the points, this will not be done. Reasons are:
- it does not add an important value with respect to sorting by date;
- it adds complexity to the mapping between local and remote names;
What we really need is fixing the setting of modification time in server side to gran that dates match the moment the picture was taken, and not the moment is was uploaded. That's already somewhere in the repo.
Thanks everybody.