Unable to upload file for importing

Unable to upload file for importing

When you try to import your subscribers from a text or csv file, sometimes you might get an error like:

Your form has a few errors, please fix them and try again!
The file "filename.csv" cannot be uploaded.
Only files of these MIME-types are allowed:
text/comma-separated-values, text/csv, application/csv,
application/excel, application/vnd.ms-excel,
application/vnd.msexcel, text/anytext, text/plain.

This happens because the file you try to upload does not have the correct mime type, i.e.: you upload a csv file, but it is identified as a text file, and it’s not allowed.
In order to fix this problem, you can go to Backend > Settings > Import/Export and set “Check mime type” to No, then try uploading the file again, this time it will work.

    • Related Articles

    • How to increase PHP upload file size directive

      Many times, trying to upload a file in AppMail for different purposes, like importing a subscriber's CSV list or uploading an email template, you got stuck with this error message: This means that the maximum allowed file size is 2MB (the default for ...
    • Correct CSV file format for import

      When importing subscribers into AppMail, you can do it from text files, csv files or external SQL database. If you decide to do it from csv files, your csv file has to contain proper header columns and one of the columns must be named email. If you ...
    • How to add a custom theme for the file manager

      AppMail uses ElFinder as its file manager of choice. While we think the default ElFinder theme looks very good, there are people that look for a different look, and this is why ElFinder supports custom themes. In order to add a custom theme in ...
    • While importing, I get this error - The CRSF token could not be verfied

      This error happens when you try to upload a larger file than your PHP configuration allows. In order to fix this issue, you need to edit your server php.ini file, usually located in /etc/ and increase the upload limit. The 3 directives that you have ...
    • Enable the file manager for editor files

      Following screenshots show how to enable the file manager so that you can store assets for your campaigns or generally so that they can be accessed from the editor. Step 1: Step 2: Step 3: Step 4: Step 5: That’s it.