CodeIgniter 2 Error loading file if import keyword is found

I am downloading a csv file with this code.

$config['upload_path'] = './uploads/'; //config overiding $config['allowed_types'] = 'csv|xlsx'; $this->load->library('upload', $config); //loading upload library 

it works fine, but in csv content if import word exists. CI gives an error message

The type of file you are trying to download is not allowed

and if I change it using Import , it works fine.

and this only happens on a live server

PHP Version 5.3.10-1ubuntu3.2

It works fine on localhost.

Can any body guide me what it was ...!

enter image description here

Localhost setup:

PHP Version 5.4.3 WAMP Apache Version 2.4.2

Configuring Live Server:

PHP Version 5.3.10-1ubuntu3.2

+4
source share
1 answer

To avoid using PHP move_uploaded() , it worked great

0
source

All Articles