AnsweredAssumed Answered

Using FileMaker 17 Data API to upload container field

Question asked by oliver on Jul 7, 2018
Latest reply on Jul 20, 2018 by rob@ohiokajukenbo.com

I have recently tried this from postman or using the CRUL command line direct from Mac OS. Cannot get it work.

 

curl -X POST \

  https://127.0.0.1/fmi/data/v1/databases/playDataAPI/layouts/playDataAPI/records/4/containers/image/1 \

  -H 'authorization: Bearer 01cab7e02ee4ffcb3ad27036dc0b85717daf00c7cd2732a5e768' \

  -H 'cache-control: no-cache' \

  -H 'content-type: multipart/form-data' \

  -F 'upload=@/Users/tester/desktop/logo.jpg'

 

This returned

 

{"response":{"modId":"7"},"messages":[{"code":"0","message":"OK"}]}

 

But nothing being insert in the container.

 

Any practice can share?

Outcomes