# Why is your email template file not correctly uploaded on the Dashboard?

Batch allows you to [import email templates](https://doc.batch.com/guides-and-best-practices/message/email/how-to-upload-your-email-templates) and use them in your email campaigns.

{% hint style="info" %}
To do so, you can simply **drag and drop a Zip file**, or click on the **Browse your files** section of your campaign form.
{% endhint %}

If the uploaded file does not meet the prerequisites, it will most likely not work properly. If this happens, here are some suggestions to identify the issue:

## 1. My template is not importing <a href="#h_9103ce1980" id="h_9103ce1980"></a>

### a) Invalid file name in your ZIP file <a href="#h_d84343c635" id="h_d84343c635"></a>

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FEKNxZSnV0YHphMB996RM%2FScreenshot%202023-02-03%20at%2016.36.54%402x.png?alt=media&#x26;token=e8b9d87f-00c1-4faf-996b-0e1000b2824b" alt=""><figcaption></figcaption></figure>

If you receive the error labelled **No index.htm(l)** **or mail.html file found**, you should rename the HTML file to **index.html (or mail.html)**. If the file is not named correctly, the import will fail.

Here is how to resolve this issue:

1. Unzip the ZIP file that contains the HTML email
2. Find the target HTML file
3. Rename the target HTML file to index.html (or mail.html)
4. Zip up the file
5. Upload the file

## 2. My images are not displayed in my email template <a href="#h_fc7adfbedf" id="h_fc7adfbedf"></a>

### a) Wrong structure of the ZIP file <a href="#h_e68fa37e26" id="h_e68fa37e26"></a>

To import templates on the Dashboard, Batch needs the ZIP file to contain exactly one **index.html (or mail.html)** **file** and one **"images" folder.**

During the compression, some tools can put the **index.html (or mail.html) file** and the **images folder** in the same folder, which impacts the import of the images.

Make sure that they are no additional folders. Here is how it goes on Mac OS:&#x20;

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FuPtvH8xRr0cdTU4swOoR%2Fscreenrecording.gif?alt=media&#x26;token=d78cd51f-d3f8-4309-a2ac-26c652db3613" alt=""><figcaption></figcaption></figure>

### b) Invalid file names in your ZIP file <a href="#h_935005aeb5" id="h_935005aeb5"></a>

When creating ZIP files, the **images** must be in the sub-folder of your ZIP file. If the “images” file is not named correctly, they will not be displayed in your template.

Here is how to resolve this issue:

When creating ZIP files, the **images** must be in the sub-folder of your ZIP file.

1. Unzip the .ZIP file that contains the HTML email.
2. Rename the image file to **images** (it doesn't work without the "s")
3. Zip up the files
4. Upload the file

### c) Invalid image names in your image file <a href="#h_62b51cc41f" id="h_62b51cc41f"></a>

In the HTML code of the template, each image should be referred to by its name and sub-folder. If the images mentioned in the HTML code do not have the same name as those in the "**images**" file, Batch will not link them and they will not be displayed in your email template.

{% hint style="warning" %}
In case you still have problems uploading your ZIP file, feel free to **contact our support teams directly on the Live Chat! 💬**
{% endhint %}
