descriptionvalues for schema. These will be shown to the user in place of the actual name. Note that you should not change the ordering of the fields from the order it appears in the snippet example.
uploadDescriptionwhich will also be shown to users when they click the button.
styleproperty on the element itself or via css with the
osmos.configurefunction call to customize the uploader further. Below is a configured sample Uploader with a single field:
uploadDescription:A standard output of the HTML snippet which must be configured. This function shows a description of the Uploader to a user.
maxRecords:Not a standard output of the HTML snippet. This function defines the maximum amount of records or rows to display and validate. This defaults to
100_000. This also limits the amount of records that will be sent to validation webhooks. Setting a lower limit can be useful if your users are encountering performance issues when uploading large files or if your validation webhooks fail with large payloads.
hideUploadSchema:A standard output of the HTML snippet which defaults to
true. This function will be called when the user closes the Uploader. It will be called with the following arguments:
originalFileUrl- string | undefined, the url the submitted file was uploaded to or undefined if they closed the uploader before submitting
reachedTransformStep- boolean, whether the user reached the transform step
successfullySubmittedData- boolean, whether the user's data was successfully submitted or not
numRecordsSubmitted- number, the number of records submitted
skippedRowNumbers- number, the indices of rows from the original file that were manually skipped by the user
hideUploadDescription:A standard output of the HTML snippet which defaults to
true. This function determines whether to show the destination description when the user is uploading their file.
completionHandler:Not a standard output of the HTML snippet. This function determines whether to show an "upload complete" callback when the user upload has been completed.