Project: titanium
Issue TIMOB-16380: iOS: HTTPClient on iOS will not POST as multipart/form-data (but Android does)
h3. Steps to Reproduce Using the exact example given in the Titanium docs at http://docs.appcelerator.com/titanium/latest/#!/guide/File_Uploads_and_Downloads I am unable to successfully transmit a file on iOS, but it *DOES* work fine on Android. Inspecting further, the POST request's Content-Type is not getting set properly to 'multipart/form-data' when sent from iOS, but instead is sent as 'application/x-www-form-urlencoded'. The property containing the supposed file will exist, but is merely a string representing the file path (as it exists on the mobile device). I've tried manually setting the Content-Type between opening the connection and sending the data, but it appears to be ignored. h3. Actual Result Content Type: application/x-www-form-urlencoded; charset=utf-8 h3. Expected Result Content Type: multipart/form-data
Story points: 1