{"action":"created","issue":{"url":"https://api.github.com/repos/loopj/android-async-http/issues/767","labels_url":"https://api.github.com/repos/loopj/android-async-http/issues/767/labels{/name}","comments_url":"https://api.github.com/repos/loopj/android-async-http/issues/767/comments","events_url":"https://api.github.com/repos/loopj/android-async-http/issues/767/events","html_url":"https://github.com/loopj/android-async-http/issues/767","id":52602556,"number":767,"title":"onProgress totalSize always = 1","user":{"login":"kamilwlf","id":7765963,"avatar_url":"https://avatars.githubusercontent.com/u/7765963?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilwlf","html_url":"https://github.com/kamilwlf","followers_url":"https://api.github.com/users/kamilwlf/followers","following_url":"https://api.github.com/users/kamilwlf/following{/other_user}","gists_url":"https://api.github.com/users/kamilwlf/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilwlf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilwlf/subscriptions","organizations_url":"https://api.github.com/users/kamilwlf/orgs","repos_url":"https://api.github.com/users/kamilwlf/repos","events_url":"https://api.github.com/users/kamilwlf/events{/privacy}","received_events_url":"https://api.github.com/users/kamilwlf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/loopj/android-async-http/labels/low","name":"low","color":"009800"},{"url":"https://api.github.com/repos/loopj/android-async-http/labels/on+hold","name":"on hold","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"smarek","id":384824,"avatar_url":"https://avatars.githubusercontent.com/u/384824?v=3","gravatar_id":"","url":"https://api.github.com/users/smarek","html_url":"https://github.com/smarek","followers_url":"https://api.github.com/users/smarek/followers","following_url":"https://api.github.com/users/smarek/following{/other_user}","gists_url":"https://api.github.com/users/smarek/gists{/gist_id}","starred_url":"https://api.github.com/users/smarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarek/subscriptions","organizations_url":"https://api.github.com/users/smarek/orgs","repos_url":"https://api.github.com/users/smarek/repos","events_url":"https://api.github.com/users/smarek/events{/privacy}","received_events_url":"https://api.github.com/users/smarek/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/loopj/android-async-http/milestones/6","labels_url":"https://api.github.com/repos/loopj/android-async-http/milestones/6/labels","id":778119,"number":6,"title":"1.4.7","description":null,"creator":{"login":"smarek","id":384824,"avatar_url":"https://avatars.githubusercontent.com/u/384824?v=3","gravatar_id":"","url":"https://api.github.com/users/smarek","html_url":"https://github.com/smarek","followers_url":"https://api.github.com/users/smarek/followers","following_url":"https://api.github.com/users/smarek/following{/other_user}","gists_url":"https://api.github.com/users/smarek/gists{/gist_id}","starred_url":"https://api.github.com/users/smarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarek/subscriptions","organizations_url":"https://api.github.com/users/smarek/orgs","repos_url":"https://api.github.com/users/smarek/repos","events_url":"https://api.github.com/users/smarek/events{/privacy}","received_events_url":"https://api.github.com/users/smarek/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":65,"state":"open","created_at":"2014-09-04T08:27:44Z","updated_at":"2015-01-12T12:18:15Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2014-12-21T18:38:07Z","updated_at":"2015-01-13T17:15:08Z","closed_at":null,"body":"is this normal?\r\n\r\nV/AsyncHttpResponseHandler﹕ Progress 15 from 1 (1500%) \r\n ```\r\n@Override\r\npublic void onProgress(int bytesWritten, int totalSize) {\r\n        super.onProgress(bytesWritten, totalSize);\r\n }\r\n\r\n@Override\r\npublic void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\r\n```"},"comment":{"url":"https://api.github.com/repos/loopj/android-async-http/issues/comments/69781107","html_url":"https://github.com/loopj/android-async-http/issues/767#issuecomment-69781107","issue_url":"https://api.github.com/repos/loopj/android-async-http/issues/767","id":69781107,"user":{"login":"smarek","id":384824,"avatar_url":"https://avatars.githubusercontent.com/u/384824?v=3","gravatar_id":"","url":"https://api.github.com/users/smarek","html_url":"https://github.com/smarek","followers_url":"https://api.github.com/users/smarek/followers","following_url":"https://api.github.com/users/smarek/following{/other_user}","gists_url":"https://api.github.com/users/smarek/gists{/gist_id}","starred_url":"https://api.github.com/users/smarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarek/subscriptions","organizations_url":"https://api.github.com/users/smarek/orgs","repos_url":"https://api.github.com/users/smarek/repos","events_url":"https://api.github.com/users/smarek/events{/privacy}","received_events_url":"https://api.github.com/users/smarek/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T17:15:07Z","updated_at":"2015-01-13T17:15:07Z","body":"Oh, streaming upload, it's not possible by default to know what size the InputStream has, so the reporting goes with number of bytes uploaded. InputStream has no method to report the content size. Method `available()` is not reliable in the case."}}