Upload

To upload a file, you need to provide the media object data structure key information:

  • A string with the location of the local file to be uploaded.

  • A name for the item. If you do not supply a name, the file name is used.

The code in Example - Media Object Upload uploads a file to the Address Book media object for address book number 479. The response to the upload request will print the name and sequence number of the new record.