Advanced File Uploader
For large attachments or multiple file uploads, use our advanced file uploader.

Our Default HTML5 File Uploader only supports file attachments up to 5 MB. Also currently it does not support multiple files. If you need to upload large files or multiple files, use our advanced file uploader.
Step 1: Add a File input inside your form with `data-advanced` attribute
For advanced uploader, enctype="" is not required and must be removed from the <form>
Step 2: Add the following script before the closing of </body>
Advanced Options
You can configure some options in the advanced uploader like multiple, accept types, max file size etc. See below:
⚠️ Note on data-form-id : We will try to get the form-id from your form action URL or access key from the hidden access_key input inside <form>. if you are using them dynamically or in other places, you need to fill that here as well.
Live Demo on Codepen
https://codepen.io/surjithctly/pen/RwXBQZR
Example Code
If you add just two lines to your contact form, you will get an advanced file upload form.
Note: You do not need to use multipart/form-data if you are using our advanced file uploader. You can use the normal method.
Styling & Theme
You can set your own theme & style as you wish by overwriting the class names provided by filepond. Here's how a dark theme would look like:
Client Side Validation
Use this snippet to make the file upload field required and to validate if the file is uploaded or not.
Add the following code block just above the closing of </body> and make sure YOUR_FORM_ID is updated with your form id.
Javascript Example
For Javascript usage, you must serialize the data and include Content-Type headers as application/json
Usage with React
Iif you are using react, we suggest you to use the Filepond Library directly.
Also check: Filepond React
File Uploader Widget
Using it with Vanilla React
Usage with React Hook Form
Last updated
Was this helpful?