目前,我正在工作的Opencart.There是一个输入功能,以上传文件和链接到产品。它支持.pdf、.doc和.xls文件格式。但是,它在上传.docx或.xlsx格式文件时出错。
如何修改现有的功能。所以,我可以上传那些文件格式。
FYI :我正在使用Opencart版本1.5.5.1
谢谢
发布于 2014-01-24 07:55:16
System > Settings
。Server
选项卡。Allowed File Extensions:
选项中添加必需的文件扩展名。Allowed File Mime Types:
字段中添加相应的mime类型。以下是正确的mimetype (What is a correct mime type for docx, pptx etc?):
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template
.potx application/vnd.openxmlformats-officedocument.presentationml.template
.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
.sldx application/vnd.openxmlformats-officedocument.presentationml.slide
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template
.xlam application/vnd.ms-excel.addin.macroEnabled.12
.xlsb application/vnd.ms-excel.sheet.binary.macroEnabled.12
祝您愉快:)!
https://stackoverflow.com/questions/21326499
复制相似问题