Leaf Link > File upload widget
This widget allows the user to upload different machine files formats for conversion using the Leaf API.
This is a beta feature.
How it works
The user can add files using the file picker from the
Browse button or drop files in the
Drag & drop zone. Your files must be in a
During the upload, the users can see the progress of the upload and they are able to cancel the upload process for the pending files.
In addition to being authenticated, you must have at least one Leaf user created. Learn more here.
1. Sign in with a Leaf account
You will need a Leaf account. If you don't have one yet, you can create it here.
2. Get an access token
To use the widget you will need a Leaf token. Use our authentication guide to know how it works.
This widget is only available for Angular.
To add this Leaf widget in an Angular application, you can use the
Here are the general steps to get started:
- Install the @withleaf.io/angular-ui-kit package using
- Import the library in your component or module file:
- Add the component to the HTML. You need your Leaf token (
leafToken) and a Leaf user ID (
leafUser) to set the required properties in the HTML component. Just add it to the container div.
Here you can run a live use case demo!