[TIMOB-19847] Image won't upload from Android to ArrowDB using API 5.0+
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2015-11-03T06:48:21.000+0000 |
Affected Version/s | Release 5.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Ray Belisle |
Assignee | Eric Merriman |
Created | 2015-11-03T04:39:29.000+0000 |
Updated | 2017-03-22T23:08:06.000+0000 |
Description
If you create a photo object in ArrowDB using an android device, the following error occurs when you try to upload with version 5.0+ of the Titanium API. The SAME CODE running 4.0 - < 5.0 works when uploading an image to Arrow DB. When using 5.0+, I get the following JSON error response after uploading an image:
{"success" : false, "error" : true, "code" : 400, "message" : "Failed to upload photo: Cannot serialize an object of class ActionDispatch::Http::UploadedFile in BSON."}
Code is as follows for a reproducible test case. Fails when I compile using 5.02GA but works when I use 4.11GA Index.xml
[~raybelisle] Could you try running this on terminal to get an updated SDK
appc ti sdk install -d -b 5_0_X
Which contains 5.0.3 with the fixes. Let me know if it works for you.Yes, that works. Any idea when 5.03GA will be available? I would love to update to the latest SDK but would want it to be a tested version
5.0.3 is essentially 5.0.2.GA with the fixes particular to this issue. Right now what's lined up is 5.1.0.GA. https://community.appcelerator.com/topic/3897/sdk-5-1-0-beta-and-studio-4-4-0-beta-now-available SDK 5.1.0.Beta is now available. Next would be 5.1.0.GA.
Resolving this issue as Duplicate of TIMOB-19784
Closing ticket as duplicate as the relevant ticket is linked above.