Upload media | Zoho Creator Help

Upload media

This API service lets you manage the different functionalities in a form.

Upload media

Methods
upload(media:withFileName:for:form:completionHandler:)This uploads files entered in the file upload, audio, video, and image fields in the form. This has to be called separately for each media field.
 
upload(forReportLinkName:media:withFileName:for:form:completionHandler:)This uploads files entered in the file upload, audio, video, and image fields while adding a record from the report. This has to be called separately for each media field.
 
upload(withRecordID:forReportLinkName:media:withFileName:for:form:completionHandler:)This uploads files entered in the file upload, audio, video, and image fields while editing a record in the report. This has to be called separately for each media field.
 
upload(media:withFileName:for:form:completionHandler:)

Parameters

mediaData of the file, audio, video or image to be uploaded.
fileNameFilename of the file, audio, video or image to be uploaded.
fieldAccessPathThe access path of field for which the media is to be uploaded.
formThe Form object which holds the media field.
completionHandlerThe FormUploadResponse and Error will be returned to the completionHandler.
 
upload(forReportLinkName:media:withFileName:for:form:completionHandler:)

Parameters

reportLinkNameThe report link name.
mediaData of the file, audio, video or image to be uploaded.
fileNameFilename of the file, audio, video or image to be uploaded.
fieldAccessPathThe access path of field for which the media is to be uploaded.
formThe Form object which holds the media field.
completionHandlerThe FormUploadResponse and Error will be returned to the completionHandler.
 
upload(withRecordID:forReportLinkName:media:withFileName:for:form:completionHandler:)

Parameters

recordIDThe ID of the record that needs to be updated.
reportLinkNameThe report link name.
mediaData of the file, audio, video or image to be uploaded.
fileNameFilename of the file, audio, video or image to be uploaded.
fieldAccessPathThe access path of field for which the media is to be uploaded.
formThe Form object which holds the media field.
completionHandlerThe FormUploadResponse and Error will be returned to the completionHandler.

  1. Adding a record from a report
  2. Adding a record in a form
  3. Adding an entry in a Lookup field
  4. Editing a record in a report
  5. Bulking editing records
  6. Fetch choices
  7. Deluge script executions
  8. Formula calculations
  9. Field actions