Project: titanium
Issue TIMOB-19784: Android: Cloud Files Create Error "Invalid Name"
This is working correctly in SDK 4.1.0.GA. Using 5.0.2.GA and the code below: {code} Cloud.Files.create({ name: 'my_file_1234567', file: theFile }, function (e) { if (e.success) { // do stuff here } else { Ti.API.info(JSON.stringify(e)); } }); {code} Produces error:- {code} 10-25 23:47:33.283 29748 29833 E TiHTTPClient: (TiHttpClient-3) [85523,88494] HTTP Error (java.io.IOException): 400 : Bad Request 10-25 23:47:33.283 29748 29833 E TiHTTPClient: java.io.IOException: 400 : Bad Request 10-25 23:47:33.283 29748 29833 E TiHTTPClient: ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1213) 10-25 23:47:33.283 29748 29833 E TiHTTPClient: java.lang.Thread.run(Thread.java:818) 10-25 23:47:33.285 29748 29761 I TiAPI : {"success":false,"error":true,"code":400,"message":"Invalid name"} 10-25 23:47:33.285 29748 29761 I ALERT : (KrollRuntimeThread) [3,88497] {"success":false,"error":true,"code":400,"message":"Invalid name"} {code} Ticket created based on information from: https://community.appcelerator.com/topic/3825/cloud-files-create-error-invalid-name/
Story points: 5