The following is an sample of code that would upload a file to a specified field using the [[API]]:
'''Note:''' ''12345'' is the target [[Custom Fields|custom field]] ID and ''98765'' is the Object ID (opportunityid, activityid, userid, companyid, etc.)
The Custom Field in the uploadFileField function does not require the prefix of "cf_" as is normally required within [[SmartSimple]].
This [[API]] may not work for files larger than 64MB in size.