Add a file upload option to Foxy.io products
Configure Uploadcare Widget
- You need an Uploadcare account.
- You need to have a project in Uploadcare.
- Configure your widget here. You can find documentation on widget settings here.
Add Uploadcare Widget to Foxy Product Form
-
Copy/paste the script snippet from your Uploadcare widget settings. The snippet will look similar to the following:
-
In your website (or the page where your Foxy product will reside), paste the snippet right before the closing HEAD tag.
-
Go back to your Uploadcare widget settings and copy the form input HTML.
-
Paste the form input HTML into your Foxy product form.
-
Add the “name” parameter to the file input HTML (ie: name=“uploads”). The name value can be changed to anything you want. Be sure to provide your store subdomain. Your HTML should look similar to the following: