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

File upload - FileUploader

The File Uploader component of the Web SDK allows images to be uploaded from the device for later analysis.

User guide for facephi-file-uploader-widget provided by the SDK Web.

Type: HTMLFacephiFileUploaderWidgetElement


How it works

The web component facephi-file-uploader-widget of the SDK Web is designed to manually upload documents to the platform and process them in the backend. This guide provides a detailed description of its properties and integration options.

Integration Example

<facephi-sdk-provider apikey={process.env.FACEPHI_SDK_APIKEY}>
    <facephi-file-uploader-widget
        maxFiles={2}
        maxFileSize={10}
    />
</facephi-sdk-provider>

Configuration

The Widget can be configured with the following properties

Properties

The File Uploader component will emit events during its lifecycle.

Events

Benefits of Using File Uploader

  • Upload unsupported documents: By filtering documents by allowed types, such as jpeg or png, documents that are not compatible with SelphID can be uploaded to the platform for processing.

  • Customizable Flow: Configure the allowed document types, the number, and the size of the files.

By leveraging the capabilities of the facephi-file-uploader-widget, you can implement a robust and easy-to-configure document upload solution.

Last updated