title: Read uploaded Excel file
body: <p>I am working in PHP. I have moved the uploaded Excel file to a folder on my local server my code is </p>
  
  <pre><code>if(isset($_POST["btnImport"]))
                   {
                        $uploads_dir = 'C:/wamp/www/quiz admin/uploads';
                        $tmp_name = $_FILES["excelFile"]["tmp_name"];
                        $name = $_FILES["excelFile"]["name"];
                      if(!empty($_FILES["excelFile"]["tmp_name"]))
                       {
                          move_uploaded_file($tmp_name, "$uploads_dir/$name");
                          $fileupload = $_FILES["excelFile"]["tmp_name"];                          
                          $fileName = explode(".",$_FILES["excelFile"]["name"]);
                          if($fileName[1]=="xls"||$fileName[1]=="xlsx")
                          {
                          $data = new Spreadsheet_Excel_Reader($name);
  </code></pre>
  
  <p>The files which I uploaded are moved to "uploads" folder but when I am trying to read these file by using:</p>
  
  <pre><code>                    $data = new Spreadsheet_Excel_Reader($name);  
  </code></pre>
  
  <p>It returns:  </p>
  
  <blockquote>
    <p>"The filename sample xls.xls is not readable"  </p>
  </blockquote>
  
  <p>what to do ? How to read the uploaded files from the uploads folder ??</p>