Initialize the Upload

When a user selects a file, the LWC first retrieves the S3 upload parameters using the Salesforce Connect API.

This retrieval is done through an Apex class (ConnectApiHelper) that calls the initializeFileUpload method. See initializeFileUpload(inputRep) to learn about the signature and parameters of the method.

Used for files less than or equal to 100 MB. The response contains a single fileUploadUrl.

Used for files greater than 100 MB. The file is split into 100 MB chunks and the response provides an array of partUrl entries and an uploadId.