简体   繁体   English

在 opencart 中上传 zip 文件扩展名时出现无效文件类型错误

[英]invalid file type error when upload zip file extension in opencart

I have a opencart 2.1.0.1 .我有一个 opencart 2.1.0.1 。 when i upload the zip file extension from extension installer from admin panel it gives me "invalid file type error".当我从管理面板的扩展安装程序上传 zip 文件扩展名时,它给了我“无效的文件类型错误”。

To solve this issue just rename the extension such that it ends with .ocmod.zip.要解决此问题,只需重命名扩展名,使其以 .ocmod.zip 结尾。 Example - you-extension-name.ocmod.zip.示例 - you-extension-name.ocmod.zip。

解压缩插件,然后使用相同的名称压缩它并添加.ocmod.zip作为扩展名对我.ocmod.zip

extract your zip file, after extracting right click on the extracted folder and make it zip again and make sure to rename it with yourname.ocmod.zip ie type ocmod before .zip and save and upload.解压您的 zip 文件,在解压后右键单击解压的文件夹并再次将其压缩并确保将其重命名为 yourname.ocmod.zip,即在 .zip 之前键入 ocmod 并保存并上传。 hope this will help.希望这会有所帮助。

Just add this in Settings>Server>MIME只需在“设置”>“服务器”>“MIME”中添加此项

application/zip application/x-zip application/octet-stream application/zip-compressed application/x-zip-compressed application/x-compress应用程序/zip 应用程序/x-zip 应用程序/八位字节流应用程序/zip 压缩应用程序/x-zip 压缩应用程序/x-compress

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM