Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3622] ArrowDB - Photo attached to a Custom Object not retrieved

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2016-05-20T20:43:23.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterClément Blanco
AssigneeShak Hossain
Created2016-05-12T17:14:00.000+0000
Updated2016-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: {}.

Comments

  1. Sharif AbuDarda 2016-05-17

    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
       curl -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
       
    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 output
       {"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"}]}}
       
  2. Clément Blanco 2016-05-17

JSON Source