Itās been uploading files from my phone all day, and when I checked earlier I noticed itās looping on the same files so there are 10s of duplicates of every photo.
I tried to clear data, wouldnāt stop uploading, I reinstalled the app and it started uploading immediately again. Itās unusable in conjunction with the error that blocks access to seeing whatās being uploaded.
@Andy@mario this is definitely progress, but I have no idea what on earth is going on.
Have installed beta 20170204 and upload works,
but now all my photos was upload to nextcloud,
not only the selected Folders at Auto-Upload,
the upload has been running since 12 oāclock
So out of interest @mario, how does this new implementation work? Iāve got enough understanding of the Android internals to follow along.
Furthermore does your implementation open the possibility of two-way sync and bulk upload in sorted into year/month as it does currently for new uploads?
Finally do you have any plans for addressing the automatic duplication of already existing files? Iād love to see a prompt asking to overwrite or skip on image uploads that already exist, rather than appending (1) to each file thatās duplicated. The 4,000 duplicates Iāll have to do something with following yesterdayās all-day upload session is a great example of why it would be very handy.
Jason, my apologies for the duplication yesterday - bugs, bugs and bugs
Since inotify and FileObserver (used by Auto Upload so far) are problematic on a large majority of mainstream devices, my implementation takes a more simplistic approach - I do a directory diff between each runs, and issue the appropriate events which are then acted upon, all that paired with FS state persistance so multiple events
of the same kind arenāt issued (looks a bit problematic sometimes, but works in 95% of my tests so far).
This should work on every phone out there.
My goal is first to fix and clean up existing implementation with features as-is, and then I can and
WILL move to a real two-way sync where possible.
Can you clarify the bulk upload request please?
Pick a folder to upload, and it creates the appropriate dated directories on NC server, and uploads files to them?
And yes, I do have plans for addressing the automatic duplication, but would appreciate an issue for that one as well.
All of those can be assigned to me.
So the gist of this all is:
a) Please open issues
b) Yes, I plan to do everything you asked
c) Hopefully Iāll have time to port Auto Upload to Android 4 as well
d) All your requests will be done after the current Auto Upload works for majority of users, which hopefully, will be soon
If I didnāt answer something properly, please let me know and Iāll try my best!
This is how Google Photos, Dropbox et al do it, right? Or do they get access to something else?
So with your implementation you can find all folders on internal/external storage with pictures and list them within the app to be uploaded or not. Thatās nice.
Yep.
A few of these requests are issues already I believe. If I find them again Iāll ping you.
The theory is that they use inotify on mobile as well, yes - in practice, I honestly doubt it. The reason is simple - itās broken, and implementations vary wildly between vendors. On Samsung phones, for instance, you can only get a notification when file is read or closed (but without writing!), and thatās pretty much it.
Desktop is different. inotify works like a charm there.
We currently only show media folders, but my implementation should allow us to add custom folders as well. Ah, the future.
But I still have the problem, all images are uploaded completely, not just the folder which was selected for the upload.
Think this is not right, or?
Will there be any change?