This feature requires Author user level or higher.
MailChimp can convert properly-formatted ZIP files that contain your custom HTML and assets into functional campaign templates. Upload a ZIP file from the Template step of the Campaign Builder to create your campaign from your own HTML.
In this article, you'll learn how to upload a ZIP file that contains template HTML code and assets from the Campaign Builder.
Tips for Creating Your ZIP File
Use the checklist below to be sure your ZIP file is properly formatted and ready for upload.
- Include only one HTML file in your ZIP file. If you have more than one HTML file, we'll use the first one we find. Make sure your HTML file's character encoding is UTF-8.
- Format all images as JPG, JPEG, PNG, or GIF.
- Include any PDFs or other documents to host with MailChimp that are linked in your template code.
- Place all images and files in the root directory of the ZIP file and not in subfolders. We'll upload all your images and files to the Content Manager and create absolute paths for you when we convert your ZIP.
Upload ZIP File to a Campaign
To upload your custom campaign template from a ZIP file, follow these steps.
- Navigate to the Template step of the Campaign Builder.
Code Your Own, and then select
Import from ZIP.
- Click Browse, and choose the ZIP file from your computer.
After the file is uploaded, you’ll be taken to the Design step of the Campaign Builder, where the Code tab displays the code we converted from your ZIP. Content in the Code tab is fully editable.
Preview your campaign or send a test email before you send to your subscribers
Troubleshooting the Upload
If you see the error message The archive was empty or otherwise corrupt when uploading the file, there is an issue with the file. Take a look at the troubleshooting tips below to make sure your file is compatible for the upload.
- File Name
Spaces or unusual characters in the filenames included in the ZIP file can cause problems when you import. We recommend that you limit filenames to contain only letters, numbers, and hyphens.
- Relative Paths
When you upload a ZIP file, we'll create the absolute paths for you. We can't pull in images or files from other folders or subfolders, so use only the filename in your code, with no location information in your link sources.
- Case Sensitivity
The upload is case sensitive so your code must match your filenames exactly.
- HTML Errors
Review your code and run your HTML through a validator to help you catch any problems or errors.