In this guide we're breaking down how to implement and style a free file uploader into your webflow forms.
An example of this is the submit form on flowbase.co
This guide is based on and uses the Uploadcare platform.
Uploadcare provides a free tier is limited to 500 uploads, or 500mb.
Images are allowed by default, however you will need to add billing to use all file types.
You will now need to create an account, and access your API key - located on your dashboard.
With an account, we need to add this script and replace it with our key.
<script>UPLOADCARE_PUBLIC_KEY = 'YOUR_PUBLIC_KEY';</script>
<script src="https://ucarecdn.com/libs/widget/3.x/uploadcare.full.min.js" data-integration="Webflow"></script>
Now add a custom attribute to a new or existing text input and apply the attribute role="uploadcare-uploader" to allow the widget to work in your form.
Hide that input by giving it a specific class, “hide,” for instance. Then, set it to display none in the Webflow editor.
Style the upload button
In order to style the button you will require some basic CSS knowledge. Or maybe even google the elements you need changed.
Here's what I've used to get you started.
border-color: rgba(1, 204, 190, .15);
That's it, hope it helps