Skip to Content

Components

FileUpload

WIP

This component is a work in progress, so it’ll probably be broken!

Choose from your computer or drag images here to upload.
Files must be PNG, JPG, EPS or PDF format.

Install or Update

wp celeste pull component FileUpload

Dependencies will automatically be installed.

External Dependencies

Before using this, you’ll need to install the external dependencies:

npm install dropzone

Properties

Prop Description
name Input name
id Unique ID, if not set, name will be used as the ID.
endpoint URL where files will be uploaded to, defaults to /wp-json/celeste/v1/file-upload

How to use it

<FileUpload icon="send">
    <p class="text-sm text-gray-600">Choose from your computer or drag images here to upload.<br>Files must be PNG, JPG, EPS or PDF format.</p>
</FileUpload>