php - Unable to import xlsx file in Codeigniter -


after configuration if trying import csv or xls file being able but, moment trying import xlsx file gettig error 'the filetype attempting upload not allowed'. in file mimes.php

'xlsx'  =>  array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip'), 

getting error 'the filetype attempting upload not allowed'. suggestion appreciated thnx.

please try following

on upload function use

$config['allowed_types'] = '*'; //all files

if working please check $_files mime type browser read .xlsx file

your can check excel import (if above solution not working) http://phpexcel.codeplex.com/


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -