AnsweredAssumed Answered

Attach file to a Note via custom action

Question asked by Faye Business Systems Group Developers on Apr 25, 2018
Latest reply on May 11, 2018 by Eugene Bychkov

Hi Team,


We are working on a customization to the SDK that can upload/transfer an image from the application and attach it to a note record.


Could you please provide an example of how to use the file API or any other way?  We have used that API before but only from Server side not the sidecar and certainly not from the mobile SDK.


We have the file URI: file:///Users/shervin/Library/Developer/CoreSimulator/Devices/AFD1E1E4-0C23-4E12-9B68-C464FC805B96/data/Containers/Data/Application/BCB424B3-3BD6-4532-B31C-EB49ECA47E66/tmp/cdv_photo_050.jpg


We know the API endpoint: app.api.buildURL('Notes/d47cd12a-4821-11e8-8ee2-0693e7c7bb2c/file/filename')


An example code for attaching the file to the note is really appreciated.