FixImports · Import errors · WooCommerce

Fix “Sorry, this file type is not permitted for security reasons” in WooCommerce

“Sorry, this file type is not permitted for security reasons.”

What it means

WordPress itself is refusing the upload before WooCommerce even sees it. WordPress checks the file's real type, and a product CSV — which usually contains HTML in the description column — can be misidentified as an HTML file and blocked.

Why it happens

How to fix it

  1. First confirm the file really is a CSV (not a spreadsheet renamed to .csv).
  2. Upload the file to your site's uploads folder via SFTP or your host's file manager, then in the importer open “Show advanced options” and point it at that server path — this bypasses the upload check entirely.
  3. Or ask your host to allow CSV uploads, or temporarily enable WordPress's unfiltered-uploads option during the import (turn it off afterwards).
  4. Stripping HTML from descriptions also works but costs you your formatting — the server-path route keeps everything.

Skip the spreadsheet surgery

Drop your file into the free checker and see every error like this one — in plain English, row by row — before you import. The $19 kit then fixes them and hands back your catalog in WooCommerce's format (and eight others).

Check my file freeNo sign-up. We don't retain any of your data — all data is deleted after you download your kit.

Questions

Is my file actually a CSV?

Open it in a text editor. A real CSV is plain text with commas. If it starts with spreadsheet XML or binary characters, re-export it as CSV.

Why does HTML in descriptions matter?

WordPress sniffs the content, not the extension. Enough HTML tags and it treats the file as a web page, which it blocks for security.

Related errors