Note that there are some explanatory texts on larger screens.

plurals
  1. POCodeigniter Force download IE
    primarykey
    data
    text
    <p>I am having trouble with the download helper in ie..basically I built a site that dynamically creates pdf invoices and pdf proofs in both cases the force download works great in firefox, chrome and opera. In IE it fails everytime and I get the following error: Unable to download $filename from mysite.com</p> <p>Unable to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.</p> <p>To begin the force_download I have a anchor target _blank with a url that directs to the following controller:</p> <pre><code> function view_uploaded_file($order = 0, $name = NULL){ $this-&gt;load-&gt;helper('directory'); $params['where'] = array('id' =&gt; id_clean($order)); $data['order'] = $this-&gt;MOrders-&gt;get($params); if($data['order']-&gt;id &lt; 1){ redirect('admin/orders'); } $name = db_clean(urldecode($name)); $map = directory_map('./uploads/customer_order_uploads/'.$data['order']-&gt;user_id.'/'.$data['order']-&gt;id, 1); if(is_array($map) &amp;&amp; in_array($name, $map)){ $this-&gt;load-&gt;helper('download'); $data = file_get_contents('./uploads/customer_order_uploads/'.$data['order']-&gt;user_id.'/'.$data['order']-&gt;id.'/'.urldecode($name)); force_download($name, $data); } else { redirect('admin/orders'); } } </code></pre> <p>Originally I thought maybe a problem with MY IE but I am able to download PDFs on other sites. I then thought that it could be a problem with codeigniters download helper but I see they already made special provisions for IE in the helper.</p> <p>If you have any ideas please let me know. Thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload