{ "id": "131136", "key": "TIMOB-17058", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-12T13:01:28.000+0000", "created": "2014-06-02T17:18:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "hyperloop", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-09-12T13:26:24.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Request that the NSURLSession module adds support for the [upload task|https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSURLSessionUploadTask_class/Reference/Reference.html#//apple_ref/occ/cl/NSURLSessionUploadTask].", "attachment": [], "flagged": false, "summary": "iOS: Implement NSURLSession Uploading", "creator": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "307372", "author": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "body": "FYI - This is high priority for customer. It's a required for a main piece of their app functionality.", "updateAuthor": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "created": "2014-06-03T17:56:17.000+0000", "updated": "2014-06-03T17:56:17.000+0000" }, { "id": "356823", "author": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'd like to vote to have this issue with a higher priority as there's no other good method to allow background upload using Titanium.", "updateAuthor": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-02T22:15:12.000+0000", "updated": "2015-07-02T22:15:12.000+0000" }, { "id": "357909", "author": { "name": "idalhaug", "key": "idalhaug", "displayName": "Rolf Dalhaug", "active": true, "timeZone": "Europe/London" }, "body": "Hi - I also need this ASAP for a client project. If the priority could be reviewed I'd be grateful without a suitable alternative.", "updateAuthor": { "name": "idalhaug", "key": "idalhaug", "displayName": "Rolf Dalhaug", "active": true, "timeZone": "Europe/London" }, "created": "2015-07-17T12:18:04.000+0000", "updated": "2015-07-17T12:18:04.000+0000" }, { "id": "380577", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "To be implemented with hyperloop, either as a module or direct implementation.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-24T05:06:13.000+0000", "updated": "2016-03-24T05:06:13.000+0000" }, { "id": "408391", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "We've been working with @hansemann to enable uploadtasks in ti.urlsession. The current fork from his branch at [https://github.com/hansemannn/ti.urlsession/tree/support-upload] is working perfectly.\r\nThe only thing that we need to make this module more useful is thet the 'sessioncompleted' event from Ti.App.iOS would also deliver the responseText from the request, otherwise we don't really know if our upload was succesfull or just that the server dispatched our request.\r\nI've made some modifications to TiApp.m which deliver the data:\r\n\r\n[https://gist.github.com/rlustemberg/8dbf4e36a95fcb92dd0a500f508c2fa6] (I had to paste a gist link, the formatting here was hideous)\r\nI think the importance of uploadtasks justifies doing deep surgery at this level, but I hope you guys can find a better way.\r\nIf you are ok with this I can create a PR", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-03-02T18:55:51.000+0000", "updated": "2017-03-02T19:01:10.000+0000" }, { "id": "427795", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving as {{Fixed}} - this was added in Ti.URLSession in 2.1.0 which is pre-packaged with SDK 6.1.0 and later.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-12T13:01:28.000+0000", "updated": "2017-09-12T13:01:28.000+0000" }, { "id": "427796", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "Aren't we still missing response handling for the upload tasks?\r\nI couldn't find the code from my PR. ", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-12T13:26:24.000+0000", "updated": "2017-09-12T13:26:24.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }