title: Header Content-length not working
body: <p>I'm doing file download with renaming it before. Everything works except size. I can't set file size with</p>
  
  <pre><code>header('Content-Length: ');
  </code></pre>
  
  <p>even I'm setting it to</p>
  
  <pre><code>header('Content-Length: 15444544545');
  </code></pre>
  
  <p>it's not working. I'm using PHP codeigniter framework, where is the problem?</p>
  
  <p>EDIT: more code:</p>
  
  <pre><code>$file_data = array(
          'originalName' =&gt; $post_info['file_info'][0]['original_name'],
          'fakeName' =&gt; $post_info['file_info'][0]['file_name'],
          'modificationId' =&gt; $post_info['file_info'][0]['modification_article_id'],
          'extension' =&gt; end(explode('.', $post_info['file_info'][0]['original_name'])),
          'name' =&gt; str_replace(".".end(explode('.', $post_info['file_info'][0]['original_name'])), "", $post_info['file_info'][0]['original_name']),
          'filesize' =&gt; filesize($post_info['file_info'][0]['file_name'])
      );
  
      header('Cache-Control: public');
      header('Content-Description: File Transfer');
      header('Content-Disposition: attachment; filename=' . $file_data['name'] . '.' . $file_data['extension']);
      header('Content-Length: ' . filesize(base_url().$file_data['fakeName']));
      // Read file
      readfile(base_url().$file_data['fakeName']);
  
      //print_r($file_data);
  
      echo "&lt;script&gt;window.close();&lt;/script&gt;";
  </code></pre>
  
  <p>EDIT: Solution</p>
  
  <p>there was a server problem</p>