For the complete documentation index, see llms.txt. This page is also available as Markdown.

uploadFinish

The file upload completed successfully.

Details

It is emitted when the user finishes uploading and clicks send.

Event: uploadFinish

Type: FacephiFileUploaderWidgetCustomEvent<UploadFinishDetail> | CustomEvent<UploadFinishDetail>

Syntax

uploader.addEventListener('uploadFinish', onUploadFinish);

Received object

The useful payload is of type UploadFinishDetail and is in event.detail:

  • eventType (string): Type of event emitted.

  • filesData (array): Uploaded files ready to process.

    • name (string): File name.

    • contentType (string): MIME type of the file.

    • data (Uint8Array): Binary content of the file.

Description

Contains the uploaded files ready to be processed in the backend.


Example

Last updated