Uploader Submission Callback
The Osmos Uploader provides a Callback to the host page when the Osmos Uploader window closes. The callback is made to the function mapped to the completionHandler
key. This key is optional. If a handler function is assigned, it will provide:
originalFileUrl
: URL of original uploaded file. The file will be available at this for the data retention duration configured on your Osmos account, after which the URL will return 404. In order to to avoid name collisions, the filename will be appended with GUID values.reachedTransformStep
: Boolean indicating if the user successfully reached the transformation stepsuccessfullySubmittedData
: Boolean if the user successfully submitted data and completed the upload experiencenumRecordsSubmitted
: Number of records submittedskippedRowNumbers
: Array of row numbers that were skipped, starting at data row number 0, and not including the header row in the count.jobId
: The UUID which corresponds to this specific Osmos Uploader run.
The Callback is triggered by one of two ways:
1. When the user selects the submit button
2. When the user closers the modal (Callback will be triggered with zero rows submitted)
For more information on Optional configuration features like completionHandler
, see Optional Settings.
Hereβs an example of a code snippet for a completionHandler
callback
Last updated