在Opencart 1.5+中上载和下载Excel文件

时间:2014-03-18 04:46:59

标签: php excel file-upload opencart shopping-cart

我想上传产品列表,这是一个带.xls和.xlsx文件扩展名的excel文件。我搜索Google并堆栈溢出并添加了以下所有内容: 允许的文件扩展名:

txt
png
jpe
jpeg
jpg
gif
bmp
ico
tiff
tif
svg
svgz
zip
rar
msi
cab
mp3
qt
mov
pdf
psd
ai
eps
ps
doc
rtf
xls
ppt
odt
ods
xlsx
xltx
potx
ppsx
pptx
sldx
docx
dotx
xlam
xlsb

Allowed File Mime Types:
text/plain
image/png
image/jpeg
image/jpeg
image/jpeg
image/gif
image/bmp
image/vnd.microsoft.icon
image/tiff
image/tiff
image/svg+xml
image/svg+xml
application/zip
application/x-rar-compressed
application/x-msdownload
application/vnd.ms-cab-compressed
audio/mpeg
video/quicktime
video/quicktime
application/pdf
image/vnd.adobe.photoshop
application/postscript
application/postscript
application/postscript
application/msword
application/rtf
application/vnd.ms-excel
application/vnd.ms-powerpoint
application/vnd.oasis.opendocument.text
application/vnd.oasis.opendocument.spreadsheet
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
application/vnd.openxmlformats-officedocument.spreadsheetml.template
application/vnd.openxmlformats-officedocument.presentationml.template
application/vnd.openxmlformats-officedocument.presentationml.slideshow
application/vnd.openxmlformats-officedocument.presentationml.presentation
application/vnd.openxmlformats-officedocument.presentationml.slide
application/vnd.openxmlformats-officedocument.wordprocessingml.document
application/vnd.openxmlformats-officedocument.wordprocessingml.template
application/vnd.ms-excel.addin.macroEnabled.12
application/vnd.ms-excel.sheet.binary.macroEnabled.12

但仍然无法使用服务器资源管理器上传excel文件。它显示警告:文件类型不正确!

我只是想从管理面板上传excel文件,并在小部件的网站主页上显示链接,这样我的访问者只需点击一下即可轻松下载。

我使用的是Opencart 1.5.5.1。

提前致谢。

0 个答案:

没有答案