Files and images can be uploaded to OpenChannel using the File Upload API method. Once a file is uploaded, the fileUrl in the API response can be added to your app by providing it within your customData JSON object structure.

An example of how to upload a file to the OpenChannel API:

curl --user {marketplaceId}:{secret} 
  -X POST 
  -H "Content-Type: multipart/form-data" 
  -F "file=@/path/to/file.jpg"

An example response from the OpenChannel API:

  "uploadDate": 1457710762784,
  "fileId": "56e2e6a91707a57c3f593499.csv",
  "name": "book.csv",
  "contentType": "application/octet-stream",
  "size": 16206,
  "fileUrl": "//"