{ "id": "107840", "key": "TIMOB-12589", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-01-14T21:22:21.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [ { "id": "28119", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "112864", "key": "TIMOB-13655", "fields": { "summary": "Android: Photo with camera overlay not uploading to ACS", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:36.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "\r\nh6.Repro sequence\r\n{code: JavaScript}\r\nTi.Media.openPhotoGallery({\r\n success : function(event) {\r\n \tvar alertText = '';\r\n\t\tvar image = event.media;\r\n\t\t\r\n\t\talertText += image.mimeType + '\\n';\r\n\t\talertText += image.imageAsThumbnail(200).mimeType + '\\n';\r\n\t\t\r\n\t\tvar imageView = Ti.UI.createImageView({\r\n\t\t\timage : image\r\n\t\t});\r\n\t\talertText += imageView.toBlob().mimeType + '\\n';\r\n\t\talert(alertText);\r\n\t\t\r\n\t\t//exam request multipart 'image' property. It has a txt.filename (tixhr-xxxxxx.txt), why txt?;\r\n\t\tvar xhr = Ti.Network.createHTTPClient();\r\n\t\txhr.open(\"POST\", 'http://www.google.com');\r\n\t\txhr.setRequestHeader(\"enctype\", \"multipart/form-data;\");\r\n\t\txhr.send({\r\n\t\t\timage : imageView.toBlob()\r\n\t\t});\r\n\t},\r\n\tmediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO]\r\n});\r\n{code}\r\n\r\nh5.iOS Alert result: \r\n{code}\r\nimage/jpeg\r\nimage/jpeg\r\nimage/jpeg\r\n{code}\r\n\r\nh6.Android alert result:\r\n{code}\r\nimage/jpeg\r\nimage/bitmap\r\nimage/bitmap\r\n{code}\r\n\r\nh6.Additional info\r\nAttached request multipart screenshots", "attachment": [ { "id": "34727", "filename": "android.png", "author": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "created": "2013-01-14T21:22:21.000+0000", "size": 7775, "mimeType": "image/png" }, { "id": "34728", "filename": "ios.png", "author": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "created": "2013-01-14T21:22:21.000+0000", "size": 11169, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Blob has wrong Content-Type & file extension name when send via HTTPClient", "creator": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "subtasks": [], "reporter": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "environment": "Titanium SDK 3.0.0GA & 2.1.4.GA\r\nAndroid 4.x", "comment": { "comments": [ { "id": "236993", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "What is your Android OS device/emulator version?", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-02T01:56:41.000+0000", "updated": "2013-02-02T01:56:41.000+0000" }, { "id": "237202", "author": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "body": "tested only devices.\n\nGalaxy 3(SH-E210S, Android 4.0.4)\nGalaxy Nexus (Android 4.1.1.)", "updateAuthor": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "created": "2013-02-05T06:32:02.000+0000", "updated": "2013-02-05T06:32:02.000+0000" }, { "id": "293797", "author": { "name": "mattapperson", "key": "mattapperson", "displayName": "me@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is still an issue in 3.2.1.GA\r\n", "updateAuthor": { "name": "mattapperson", "key": "mattapperson", "displayName": "me@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-19T19:17:10.000+0000", "updated": "2014-02-19T19:17:10.000+0000" }, { "id": "337950", "author": { "name": "rpavez", "key": "rpavez", "displayName": "Rodrigo Pavez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem is also present in 3.4.0.GA. In my case even when the file is a JPEG, XHR its sending it as BMP (Tested in Motorola Moto G XT1032). My only workaround its just add the bmp extension even when its JPEG and let the browser guess the right mime-type then but its clearly not a good solution.", "updateAuthor": { "name": "rpavez", "key": "rpavez", "displayName": "Rodrigo Pavez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-06T04:54:34.000+0000", "updated": "2015-01-06T04:54:34.000+0000" }, { "id": "406120", "author": { "name": "arif", "key": "arif", "displayName": "Arjan", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Also got this problem. Working with SDK 6.0.2, tried multiple simulators, same issue.", "updateAuthor": { "name": "arif", "key": "arif", "displayName": "Arjan", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2017-02-02T08:18:45.000+0000", "updated": "2017-02-02T08:18:45.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }