{ "id": "147591", "key": "AC-1694", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-05-06T20:34:48.000+0000", "created": "2015-05-06T20:25:02.000+0000", "labels": [ "clipboard", "ios" ], "versions": [], "issuelinks": [ { "id": "47842", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "148037", "key": "TIMOB-19089", "fields": { "summary": "iOS: Clipboard does not support multiple items", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:38:11.000+0000", "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" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Problem\r\n\r\nWhen requesting Ti.UI.Clipboard.getData(), if the clipboard has several items (e.g. more than one image) it returns only one item.\r\n\r\nh2. Test case\r\n{code:lang=javascript|title=app.js}\r\n\r\n var self = Ti.UI.createView();\r\n\r\n\tvar lblId = Ti.UI.createLabel({\r\n\t\ttext : 'No valid files were identified.',\r\n\t\tleft : 8,\r\n\t\tright : 8,\r\n\t\ttop : 32,\r\n\t});\r\n\tself.add(lblId);\r\n\t\r\n\tvar imgFile=Ti.UI.createImageView({\r\n\t\tleft:8,\r\n\t\tright:8,\r\n\t\ttop:80,\r\n\t\theight:200,\r\n\t});\r\n\tself.add(imgFile);\r\n\r\n\tvar tmrCheck = setInterval(function() {\r\n\r\n //now copy more than one image from iOS Photos (like attachment) and see the result\r\n //notice that Blob size and image refers to only one image\r\n\r\n\t\tif (Ti.UI.Clipboard.hasData('image')) {\t\r\n\t\t\timgFile.image=Ti.UI.Clipboard.getData('image');\r\n\t\t\tTi.API.info(Ti.UI.Clipboard.getData('image').getSize());\r\n\t\t\tlblId.text = 'Media Identified!';\r\n\t\t}else{\r\n\t\t\tlblId.text ='No valid files were identified.';\r\n\t\t}\r\n\t}, 3000);\r\n\r\n{code}", "attachment": [ { "id": "55259", "filename": "iOS Simulator Screen Shot 06.05.2015 17.22.43.png", "author": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-06T20:21:16.000+0000", "size": 198186, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Clipboard does not support multiple items", "creator": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.10.3\r\n Architecture = 64bit\r\nNode.js\r\n Node.js Version = 0.10.13\r\n npm Version = 1.3.2\r\nTitanium CLI\r\n CLI Version = 3.4.2\r\nTitanium SDK\r\n SDK Version = 3.5.1.GA\r\nSupport/Titanium/mobilesdk/osx/3.5.1.GA\r\n Target Platform = iphone\r\n", "comment": { "comments": [ { "id": "351840", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "This is invalid, per our documentation, \"used to save a single item of data\" ,\r\nHere's the link to the docs:\r\n[Clipboard|http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.Clipboard]", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-05-06T20:34:48.000+0000", "updated": "2015-05-06T20:34:48.000+0000" }, { "id": "351851", "author": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I saw the sentence in the documentation but it says nothing about retrieving data. Anyway is it possible to you change this issue to an improvement type? I think it's a really important feature missing in the Titanium SDK.", "updateAuthor": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-06T21:44:25.000+0000", "updated": "2015-05-06T21:44:25.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }