[AC-3622] ArrowDB - Photo attached to a Custom Object not retrieved
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-05-20T20:43:23.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Clément Blanco |
| Assignee | Shak Hossain |
| Created | 2016-05-12T17:14:00.000+0000 |
| Updated | 2016-05-20T20:43:23.000+0000 |
Description
Images attached to Custom Objects (or any Object like User?) are not retrieved, the API simply returns a empty Object
photo: {}.
Hello, Please provide the sample code that you are testing for photos in custom object. Here are some referance http://docs.appcelerator.com/arrowdb/latest/#!/api/CustomObjects-method-create http://docs.appcelerator.com/arrowdb/latest/#!/api/Photos-method-create Using the bellow command
I can create a custom object and assign an image to it. I can't reproduce the issue with docs sample code. This is the outputcurl -b cookies.txt -c cookies.txt -F "fields={\"color\":\"blue\", \"make\": \"nissan\", \"purchased_at\" : \"2011-11-02 17:07:37 -0700\", \"year\" : 2005, \"used\" : false, \"photo\" : \"2016-03-14_01-01-10_518.jpg\", \"coordinates\":[-122.1, 37.1]}" https://api.cloud.appcelerator.com/v1/objects/car/create.json?key=<YOUR APP APP KEY>&pretty_json=true{"meta":{"code":200,"status":"ok","method_name":"createObject"},"response":{"car":[{"user_id":"568b8f442ea29c090830c96a","created_at":"2016-05-17T14:16:00+0000","updated_at":"2016-05-17T14:16:00+0000","coordinates":[[-122.1,37.1]],"color":"blue","make":"nissan","purchased_at":"2011-11-02 17:07:37 -0700","year":2005,"used":false,"photo":"2016-03-14_01-01-10_518.jpg","id":"573b27a083f2c008e88ab9c4"}]}}