{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/android/issues/1141","repository_url":"https://api.github.com/repos/nextcloud/android","labels_url":"https://api.github.com/repos/nextcloud/android/issues/1141/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/android/issues/1141/comments","events_url":"https://api.github.com/repos/nextcloud/android/issues/1141/events","html_url":"https://github.com/nextcloud/android/issues/1141","id":238647401,"number":1141,"title":"Auto upload uploads existing files causing duplicates","user":{"login":"rugk","id":11966684,"avatar_url":"https://avatars0.githubusercontent.com/u/11966684?v=3","gravatar_id":"","url":"https://api.github.com/users/rugk","html_url":"https://github.com/rugk","followers_url":"https://api.github.com/users/rugk/followers","following_url":"https://api.github.com/users/rugk/following{/other_user}","gists_url":"https://api.github.com/users/rugk/gists{/gist_id}","starred_url":"https://api.github.com/users/rugk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rugk/subscriptions","organizations_url":"https://api.github.com/users/rugk/orgs","repos_url":"https://api.github.com/users/rugk/repos","events_url":"https://api.github.com/users/rugk/events{/privacy}","received_events_url":"https://api.github.com/users/rugk/received_events","type":"User","site_admin":false},"labels":[{"id":637385520,"url":"https://api.github.com/repos/nextcloud/android/labels/AutoUpload","name":"AutoUpload","color":"e99695","default":false},{"id":388626761,"url":"https://api.github.com/repos/nextcloud/android/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-26T19:38:37Z","updated_at":"2017-07-10T23:22:33Z","closed_at":null,"body":"### Actual behaviour\r\nOn every phone restart the auto uploader uploads **all** files in the directory (just the camera dir chosen).\r\nI can see how the file name in the notification changes from \"IMG123456.jpg\" to \"IMG123456 (2).jpg\" in the \"upload finished\" notification. So I can clearly see it duplicates these photos.\r\n\r\n### Expected behaviour\r\nFirst check if the file exists on the server (& has already be uploaded) and only then upload it.\r\n \r\n### Steps to reproduce\r\n1. Upload some files already (e.g. with a previous app version).\r\n2. Upgrade NextCloud app (and/or) enable the upload-feature\r\n3. See how uploads all your photos and you have to cancel each single item to stop the process.\r\n\r\n### Environment data\r\nAndroid version: 7.1\r\n\r\nDevice model: LineageOS (14.1)\r\n\r\nStock or customized system: see above\r\n\r\nNextcloud app version: 1.4.2\r\n\r\nNextcloud server version: 12\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/android/issues/comments/314277380","html_url":"https://github.com/nextcloud/android/issues/1141#issuecomment-314277380","issue_url":"https://api.github.com/repos/nextcloud/android/issues/1141","id":314277380,"user":{"login":"ingmarcosp","id":603292,"avatar_url":"https://avatars1.githubusercontent.com/u/603292?v=3","gravatar_id":"","url":"https://api.github.com/users/ingmarcosp","html_url":"https://github.com/ingmarcosp","followers_url":"https://api.github.com/users/ingmarcosp/followers","following_url":"https://api.github.com/users/ingmarcosp/following{/other_user}","gists_url":"https://api.github.com/users/ingmarcosp/gists{/gist_id}","starred_url":"https://api.github.com/users/ingmarcosp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ingmarcosp/subscriptions","organizations_url":"https://api.github.com/users/ingmarcosp/orgs","repos_url":"https://api.github.com/users/ingmarcosp/repos","events_url":"https://api.github.com/users/ingmarcosp/events{/privacy}","received_events_url":"https://api.github.com/users/ingmarcosp/received_events","type":"User","site_admin":false},"created_at":"2017-07-10T23:22:33Z","updated_at":"2017-07-10T23:22:33Z","body":"Me too..\r\nHuawei p8 Android 6.0\r\nLasted Android app un Google playStore \r\nNextcloud 12.0. 0"}}
{"actor":{"display_login":"ingmarcosp"}}