How to extend supported file types in Amelia’s attachment custom field
Starting with Amelia 8.3, the plugin follows WordPress’s default file security policy, which blocks .zip file uploads through the Attachment custom field. This restriction is in place for security reasons.
However, advanced users can manually add additional file types (like .zip or .gz) by editing Amelia’s settings directly in the database.
Important
This modification should only be done by users familiar with database editing.
Always back up your database before making any manual changes.
Amelia’s team cannot provide support for issues caused by direct database edits.
Info
Files uploaded via the Attachment custom field are stored in your site’s ../wp-content/uploads/amelia/ folder by default.
You can change this upload location in Features & Integrations → Features → Custom fields, under “Attachment upload path.”
Enter a relative path (for example, wp-content/uploads/bookings/).
Where are allowed file types stored?
Allowed extensions are defined in your WordPress database under the wp_options table (or a similar prefix if your installation uses a custom one).
Open your database using a tool such as phpMyAdmin or Adminer.
Locate the table named your_prefix_options (for example, wp_options).
In the option_name column, search for amelia_settings. You should see one matching record.
Edit that record and search inside the value (using CTRL+F or CMD+F) for:
customFieldsAllowedExtensions
How do I add new file types?
Inside that section, you’ll see a list of file extensions and their MIME types. Look for the last one. Example from the screenshot above:
".docx":"application/msword"
To allow .zip and .gz files, add the following immediately after the existing entries: