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 8284699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:12:10+00:00 2026-06-08T11:12:10+00:00

I am using codeigniter and jQuery form plugin. I am trying to upload a

  • 0

I am using codeigniter and jQuery form plugin.

I am trying to upload a file but its not working with IE.

Please check my controller:

    if($fileCount >0)

    {

    //there are some files



    //configure upload


    $config['upload_path'] = 'crm_data/crm_customer_data';

    $config['allowed_types'] = 'zip|rar|doc|pdf|gif|jpg|jpeg|docx';

    $config["max_size"] = 2048;

    $config['encrypt_name'] = true;


    //loading upload

    $this->load->library("upload");

    $this->upload->initialize($config);

if($this->upload->do_upload("attach"))

        {

        $l = $this->upload->data();

        $logs["attachment"] =  $l["file_name"];


        }

    else

    {

    //some errors on upload                             exit(json_encode(array("status"=>FALSE,"reason"=>$this->upload->display_errors())));

    }

Here is the html

<input type="file" id="attach" name="attach" />

IT WORKS WELL IN OTHER BROWSERS except IE.

see the response.

var_dump($_FILES)


array
  'attach' => 
    array
      'name' => string 'invoice_record_and_list.zip' (length=31)
      'type' => string '' (length=0)
      'tmp_name' => string 'C:\wamp\tmp\phpF467.tmp' (length=23)
      'error' => int 0
      'size' => int 1467474

IN IE i am getting the following errors .

The filetype you are attempting to upload is not allowed.

EDIT:

I noted something var_dump on IE gives me a "" for typebut in FF i got 'type' => string 'application/x-zip-compressed' (length=28)

  • 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-08T11:12:12+00:00Added an answer on June 8, 2026 at 11:12 am

    This may help.

    IE not sending your mime type for ‘zip’ (eg: 'type' => string).
    so just append an empty value with the file types like this in your config/memi.ph.

    'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed',"")

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

Sidebar

Related Questions

I'm working on a signup form using jQuery's AJAX and Codeigniter PHP framework, but
I am using codeigniter and Jquery. I have an upload form in my view
I'm trying to post a form via jQuery .post() , and it's not working
i'm trying to validate a form using jquery, ajax and json using codeigniter's validation,
I am using HMVC codeigniter. I am trying to use jquery ajax first time.
I trying to make my first AJAX with JSON call using jQuery and CodeIgniter.
I am using CodeIgniter to upload some files through a form. I know how
I'm using jQuery to call a method of my volunteer CodeIgniter controller from a
I want to submit a form using jQuery in a CodeIgniter application. However, the
I'm using the jquery raty plugin http://www.wbotelhos.com/raty/ to make a form with star rating.

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.