{ "id": "171667", "key": "AC-5740", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2018-05-17T09:39:06.000+0000", "created": "2018-05-17T08:05:52.000+0000", "labels": [ "media", "question" ], "versions": [], "issuelinks": [], "assignee": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-05-18T01:08:01.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "SDK version 5.5 (cant upgrade to a new version)\r\n\r\nopenPhotoGallery api\r\nIs there a recommended way to get the file extension from the retunded e.media stream of data?", "attachment": [], "flagged": false, "summary": "openPhotoGallery - in some devices the returned image stream nativepath is empty (question)", "creator": { "name": "boaz@e-drivetech.com", "key": "boaz@e-drivetech.com", "displayName": "boaz@e-drivetech.com", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "boaz@e-drivetech.com", "key": "boaz@e-drivetech.com", "displayName": "boaz@e-drivetech.com", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "437725", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Extensions are unreliable. You should check the mimetype. http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Blob-property-mimeType\r\n\r\nSince this is more of a question than a bug, I'm going to resolve this issue right away also, unless you think there really is a bug then I can reopen it.\r\n\r\nps: I recommend asking the community these kind of questions. There is a slack community on tislack.org and stackoverflow is a good go-to as well when using the titanium tag.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-05-17T09:38:50.000+0000", "updated": "2018-05-17T09:38:50.000+0000" }, { "id": "437750", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Rene is correct. You can't rely on {{nativePath}}. Especially if the photo comes from the cloud, because we don't have direct file access to the photo... because it might not be stored on SD. Fetching the {{mimeType}} property is the way to go.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-18T01:08:01.000+0000", "updated": "2018-05-18T01:08:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }