{"action":"created","issue":{"url":"https://api.github.com/repos/delight-im/Android-AdvancedWebView/issues/9","labels_url":"https://api.github.com/repos/delight-im/Android-AdvancedWebView/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/delight-im/Android-AdvancedWebView/issues/9/comments","events_url":"https://api.github.com/repos/delight-im/Android-AdvancedWebView/issues/9/events","html_url":"https://github.com/delight-im/Android-AdvancedWebView/issues/9","id":55327021,"number":9,"title":"Uploaded files always come as application/octet-stream","user":{"login":"rbaprado","id":9011953,"avatar_url":"https://avatars.githubusercontent.com/u/9011953?v=3","gravatar_id":"","url":"https://api.github.com/users/rbaprado","html_url":"https://github.com/rbaprado","followers_url":"https://api.github.com/users/rbaprado/followers","following_url":"https://api.github.com/users/rbaprado/following{/other_user}","gists_url":"https://api.github.com/users/rbaprado/gists{/gist_id}","starred_url":"https://api.github.com/users/rbaprado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbaprado/subscriptions","organizations_url":"https://api.github.com/users/rbaprado/orgs","repos_url":"https://api.github.com/users/rbaprado/repos","events_url":"https://api.github.com/users/rbaprado/events{/privacy}","received_events_url":"https://api.github.com/users/rbaprado/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/delight-im/Android-AdvancedWebView/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-23T20:13:58Z","updated_at":"2015-01-23T22:17:31Z","closed_at":null,"body":"Hello,\r\n\r\nIs there a way to fix this? My backend depends on the mime-type to detect valid images and has problems to receive files from Android because of this...\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/delight-im/Android-AdvancedWebView/issues/comments/71276106","html_url":"https://github.com/delight-im/Android-AdvancedWebView/issues/9#issuecomment-71276106","issue_url":"https://api.github.com/repos/delight-im/Android-AdvancedWebView/issues/9","id":71276106,"user":{"login":"mwaclawek","id":1681478,"avatar_url":"https://avatars.githubusercontent.com/u/1681478?v=3","gravatar_id":"","url":"https://api.github.com/users/mwaclawek","html_url":"https://github.com/mwaclawek","followers_url":"https://api.github.com/users/mwaclawek/followers","following_url":"https://api.github.com/users/mwaclawek/following{/other_user}","gists_url":"https://api.github.com/users/mwaclawek/gists{/gist_id}","starred_url":"https://api.github.com/users/mwaclawek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwaclawek/subscriptions","organizations_url":"https://api.github.com/users/mwaclawek/orgs","repos_url":"https://api.github.com/users/mwaclawek/repos","events_url":"https://api.github.com/users/mwaclawek/events{/privacy}","received_events_url":"https://api.github.com/users/mwaclawek/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T22:17:31Z","updated_at":"2015-01-23T22:17:31Z","body":"Well, on 4.4.4, file uploads [should not be available at all](https://github.com/delight-im/Android-AdvancedWebView/issues/4). Apart from that, you're right, file uploads should work as in the user's normal browser.\r\n\r\nWe have tested MIME type detection with this library and it seems to work as intended. Generally, most browsers detect the MIME type by looking at the file extension, anyway.\r\n\r\nCan you please check what MIME type is detected if you upload the *same* image from your desktop browser or from the Android system browser?"}}