title: PHPExcel_Reader_Exception recognised as an OLE file
body: <p>Please help me reading an excel file upload attached. When I attach an XLS format, my PHPExcel reader is not working. Do you think where am I missing?</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;form role="form" id="myForm" class="add_customer_form" enctype="multipart/form-data"&gt;
      &lt;label for="fileUpload"&gt;Upload File *&lt;/label&gt;
      &lt;input type="file" id="files" name="file[]" class="form-control"
        accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/plain, application/vnd.ms-excel"
      multiple required&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>AJAX</p>
  
  <p>//USAGE: $("#form").serializefiles();</p>
  
  <pre><code>(function($) {
      $.fn.serializefiles = function() {
          var obj = $(this);
          /* ADD FILE TO PARAM AJAX */
          var formData = new FormData();
          $.each($(obj).find("input[type='file']"), function(i, tag) {
              $.each($(tag)[0].files, function(i, file) {
                  formData.append(tag.name, file);
              });
          });
          var params = $(obj).serializeArray();
          $.each(params, function (i, val) {
              formData.append(val.name, val.value);
          });
          return formData;
      };
  })(jQuery);
  
  $.ajax({
      url: base_url+'customer/customer_add',
      type: 'POST',
      data: values,
      cache: false,
      contentType: false,
      processData: false,
      success: function(data){ 
              console.log(data);
      }
  });
  </code></pre>
  
  <p>PHP</p>
  
  <pre><code>foreach($_FILES["file"]['name'] as $file =&gt; $fname) {
      $file_path  = $_FILES["file"]["tmp_name"][$file];
      $extension = pathinfo($fname);
  
      if($extension['extension'] == 'xls') {
          $objReader = PHPExcel_IOFactory::createReader('Excel5');    
      }
      else {
          $objReader = PHPExcel_IOFactory::createReader('Excel2007');
      }
      $inputFileType = PHPExcel_IOFactory::identify($file_path);
      $objPHPExcel = $objReader-&gt;load($file_path);
  
      $cell_collection = $objPHPExcel-&gt;getActiveSheet()-&gt;getCellCollection();
      print_r($cell_collection); die();
  }
  </code></pre>
  
  <p>DISPLAY ERROR</p>
  
  <p><a href="https://i.stack.imgur.com/JUhnm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JUhnm.jpg" alt="displayerror"></a></p>