Fix Invalid File Type And Directory Not Found Error While Installing Opencart Extensions

Most of the user face Common error of “invalid file type” or “directory containing files to be uploaded couldn’t be found” while trying to install new extension or module in Opencart.

Fix Opencart Invalid File Type Error:

Opencart Downloaded extension is in .ZIP file format and when you upload it via Extension Installer from admin panel. Its show an “Invalid File Type” error.

opencart invalid file type error

Opencart does not support .ZIP file to upload. To fix this issue Just Rename the .zip file to .ocmod.zip file.

For example Extension name look like : opencart-extension-name.ocmod.zip

Solve Directory Containing Files Folder Not Found Error:

After solve the file type error, extension start uploading. In the middle of the process you might get error “Directory containing files to be uploaded couldn’t be found“.

opencart directory not found error

Opencart expect that extension file to be in Inside an Upload folder. To fix this error, unzip extension file and move all the files to new created “upload” folder. Than again zip the extension file and rename it with .ocmod.zip.

You May Also Like:

How to Get Opportunity Data from Salesforce Through API in PHP
How to Add New Product in Bigcommerce via API V2
How to Insert New Lead Data in Zoho CRM Through API
How to Implement UPS API and Create Shipping Label
How to Get User Data From Slideshare.net API
How to Send Order Data in Shipstation Via API Call

For example downloaded extension file structure look like catalog -> controller.

You should be change it like that upload -> catalog -> controller.

After doing this upload it and now extension install successfully in Opencart without any necessary changes.

Note: Whenever you Install or Uninstall any extension in Opencart, You need to click the refresh button to rebuild the modification cache. So must click the refresh button on top right side of Extension-> Modification tab.

Recommended Posts For You

About Harish

I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me at - [email protected]

View all posts by Harish

5 thoughts on “Fix Invalid File Type And Directory Not Found Error While Installing Opencart Extensions”

Leave a Comment

Your email address will not be published. Required fields are marked *