Limited time
They’re Booking Smarter. Are You?
up to 50% Off
Limited time

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.

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).

  1. Open your database using a tool such as phpMyAdmin or Adminer.

  2. Locate the table named your_prefix_options (for example, wp_options).

  3. In the option_name column, search for amelia_settings.
    You should see one matching record.

  4. Edit that record and search inside the value (using CTRL+F or CMD+F) for:

customFieldsAllowedExtensions
customFieldsAllowedExtensions parameter inside amelia_settings in phpMyAdmin.

How do I add new file types?

Inside that section, you’ll see a list of file extensions and their MIME types.
For example:

".docx":"application/msword"

To allow .zip and .gz files, add the following immediately after the existing entries:

".zip":"application/zip",
".gz":"application/x-gzip"

Note:
When adding new entries, make sure:

  • There’s a comma after the previous entry (for example, after "application/msword").

  • There’s no comma after the last entry in the list.
    You can refer to the screenshots above and below for the correct formatting.

Depending on your database management tool, the separator between application and the type may display as \/ instead of / — both are valid.

Adding .zip and .gz MIME types in amelia_settings JSON string.

What should I do after saving?

Once you’ve saved the modified entry:

  1. Clear your website cache (and any server-level or CDN cache if used).

  2. Refresh your Amelia booking page.

  3. Test uploading a .zip file through the Attachment custom field to confirm it works.

The uploaded files will then be available for download in the Appointments or Events sections of the back-end, just like any other attachment.