{"action":"created","issue":{"url":"https://api.github.com/repos/coomar2841/image-chooser-library/issues/25","labels_url":"https://api.github.com/repos/coomar2841/image-chooser-library/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/coomar2841/image-chooser-library/issues/25/comments","events_url":"https://api.github.com/repos/coomar2841/image-chooser-library/issues/25/events","html_url":"https://github.com/coomar2841/image-chooser-library/issues/25","id":30483433,"number":25,"title":"Image file name containing encoded url can cause an issue","user":{"login":"DavidBoyes","id":147282,"avatar_url":"https://avatars.githubusercontent.com/u/147282?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBoyes","html_url":"https://github.com/DavidBoyes","followers_url":"https://api.github.com/users/DavidBoyes/followers","following_url":"https://api.github.com/users/DavidBoyes/following{/other_user}","gists_url":"https://api.github.com/users/DavidBoyes/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBoyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBoyes/subscriptions","organizations_url":"https://api.github.com/users/DavidBoyes/orgs","repos_url":"https://api.github.com/users/DavidBoyes/repos","events_url":"https://api.github.com/users/DavidBoyes/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBoyes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coomar2841/image-chooser-library/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"coomar2841","id":236841,"avatar_url":"https://avatars.githubusercontent.com/u/236841?v=3","gravatar_id":"","url":"https://api.github.com/users/coomar2841","html_url":"https://github.com/coomar2841","followers_url":"https://api.github.com/users/coomar2841/followers","following_url":"https://api.github.com/users/coomar2841/following{/other_user}","gists_url":"https://api.github.com/users/coomar2841/gists{/gist_id}","starred_url":"https://api.github.com/users/coomar2841/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coomar2841/subscriptions","organizations_url":"https://api.github.com/users/coomar2841/orgs","repos_url":"https://api.github.com/users/coomar2841/repos","events_url":"https://api.github.com/users/coomar2841/events{/privacy}","received_events_url":"https://api.github.com/users/coomar2841/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2014-03-31T03:37:24Z","updated_at":"2015-09-28T06:15:09Z","closed_at":null,"body":"If you have an image which contains an encoded URL as the file name then the image-chooser-library will return \"File not found\". It appears that Uri.parse decodes the file name which causes an issue when trying to copy the file in the MediaProcessThread copyFileToDir() method.\r\n\r\nWhat would the downside be to changing\r\n````file = new File(Uri.parse(filePath).getPath());````\r\nto\r\n````file = new File(filePath);````"},"comment":{"url":"https://api.github.com/repos/coomar2841/image-chooser-library/issues/comments/143649920","html_url":"https://github.com/coomar2841/image-chooser-library/issues/25#issuecomment-143649920","issue_url":"https://api.github.com/repos/coomar2841/image-chooser-library/issues/25","id":143649920,"user":{"login":"coomar2841","id":236841,"avatar_url":"https://avatars.githubusercontent.com/u/236841?v=3","gravatar_id":"","url":"https://api.github.com/users/coomar2841","html_url":"https://github.com/coomar2841","followers_url":"https://api.github.com/users/coomar2841/followers","following_url":"https://api.github.com/users/coomar2841/following{/other_user}","gists_url":"https://api.github.com/users/coomar2841/gists{/gist_id}","starred_url":"https://api.github.com/users/coomar2841/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coomar2841/subscriptions","organizations_url":"https://api.github.com/users/coomar2841/orgs","repos_url":"https://api.github.com/users/coomar2841/repos","events_url":"https://api.github.com/users/coomar2841/events{/privacy}","received_events_url":"https://api.github.com/users/coomar2841/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T06:15:09Z","updated_at":"2015-09-28T06:15:09Z","body":"I haven't experience any problems with this yet. Do you have an example filename that causes this issue? I can check that quickly. Sorry for replying so late to this."}}