title: uploading docx file in codeigniter
body: <p>mimes.php</p>
  
  <pre><code>        'doc'   =&gt;  array('application/msword', 'application/vnd.ms-office'),
          'docx'  =&gt;  array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip'),
          'dot'   =&gt;  array('application/msword', 'application/vnd.ms-office'),
          'dotx'  =&gt;  array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
          'xlsx'  =&gt;  array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
          'word'  =&gt;  array('application/msword', 'application/octet-stream'),
  </code></pre>
  
  <p>var_dump is giving following response </p>
  
  <pre><code>string(24)"application/octet-stream"
  </code></pre>
  
  <p>This is my some controller code</p>
  
  <pre><code>        if(!empty($_FILES['file_name']))
                          {
                              // Profile Pic upload
                              $config = array();
                              $config['upload_path']           = 'uploads/file/'; 
                              $config['allowed_types']         = 'gif|jpg|png|jpeg|pdf|csv|txt|doc|docx|rar|zip|svg|xml|GIF|JPG|PNG|JPEG|PDF|DOC|XML|DOCX|xls|xlsx|CSV|TXT|SVG'; 
                              $config['max_size']              =10000; 
                              $config['max_width']             = 1024; 
                              $config['max_height']            = 1024; 
                              $config['file_ext_tolower']      = true;
                              $this-&gt;load-&gt;library('upload', $config, 'profilepic');
                              $this-&gt;profilepic-&gt;initialize($config);
  
                              if(!$profile_pic = $this-&gt;profilepic-&gt;do_upload('file_name')) 
                              {
                                  $this-&gt;session-&gt;set_flashdata('message', $this-&gt;upload-&gt;display_errors());
                              }
                              else 
                              {
                                   $imgname = $this-&gt;profilepic-&gt;data();
                                   $imgpath = 'uploads/file/'.$imgname['file_name'];
                                   $data['file_name'] = $imgpath;
                              }                       
                          }else{
                              $this-&gt;session-&gt;set_flashdata('message', 
  </code></pre>
  
  <p>'Please 
  I tried all the possible solution available but not able to succeed.Please suggest.</p>