1 Reply Latest reply on Apr 5, 2017 5:36 AM by Chris Francis

    Issues Uploading Image via API

    Chris Francis

      I know what I am doing wrong is probably a very simple fix but I can't find it.  See my curl request below

       

      curl.exe -k -X POST -H "Authorization: Bearer 7a15dbf7-bd65-****-****-************:**" -H "Content-Type: application/json"-H "Accept: application/json" -F "folder={\"id\":****, \"type\":\"Folder\"}" -F "name=myFirstApiFile.jpg" -F "file=@D:\*****\*****\*****\header.img" https://***-***-***.mktorest.com/rest/asset/v1/files.json

       

      I receive 701: file is mandatory.  But as you can see file is clearly one of my posted fields.