Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9158449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:14:55+00:00 2026-06-17T13:14:55+00:00

I am uploading a csv file with this code. $config[‘upload_path’] = ‘./uploads/’; //config overiding

  • 0

I am uploading 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 there exist a word import CI throw an error message

The filetype you are attempting to upload is not allowed

and if I change it with Import it works fine.

and it only happens on live server

PHP Version 5.3.10-1ubuntu3.2

it works fine on localhost.

Can some body guide me what that was..!

enter image description here

Localhost setting:

PHP Version 5.4.3 WAMP Apache Version 2.4.2

Live Server setting:

PHP Version 5.3.10-1ubuntu3.2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T13:14:56+00:00Added an answer on June 17, 2026 at 1:14 pm

    To avoid I use PHP move_uploaded() & it worked fine

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

am I uploading this file right? Here is my code: Deleted Code it is
I am uploading email addresses from a CSV file, via fgetcsv() , into a
This is kind of a strange one. I have a CSV that I'm uploading
I am uploading a csv file and then parsing it using str_getcsv. All works
I've been having a problem uploading a CSV file to Heroku and processing it.
I always got an invalid file type error in uploading csv file in codeigniter.
I'm exporting an excel file into a CSV and then uploading to a MySQL
I am currently able to enter csv file data into Excel VBA by uploading
While uploading a file bigger than post_max_size in Symfony, the uploaded file is allocated
I am uploading video on twitvid using its official php library. http://www.martin-gardner.co.uk/twitvid/twitvid.class.example.php#embedvideo But when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.