Deprecated. This function will continue to work, but a newer version is available. Use the
uploadFiles()
function instead.
Uploads the file that the site visitor has chosen.
The startUpload()
function triggers the upload of the file in the
upload button's value property.
If this function is already in your code, it will continue to work.
To stay compatible with future changes, migrate to the new
uploadFiles()
function:
Note the following differences between the new uploadFiles()
function and the deprecated startUpload()
function:
uploadFiles()
triggers the upload of multiple files instead of a single file.uploadFiles()
returns an array of UploadedFile
objects instead of a single UploadFile
object.UploadedFile
object contains different properties than the deprecated UploadFile
object.Note the following returns mapped to the uploadFiles()
function returns as follows:
url
and mediaId
--> fileUrl
title
--> originalFileName