Note that there are some explanatory texts on larger screens.

plurals
  1. POIE 10 wont reload my directory proper after uploading file with PHP
    primarykey
    data
    text
    <p>I am having some headaching trouble with IE 10. (who doesn't)</p> <p>I have this upload function, where a user can upload certain files (PDF's) to the admin part of a website.</p> <p>After the upload is completed I use jQuery to show the contents of the dir through a jQuery.post action, in effect reloading the dir contents and printing them to the screen.</p> <p>I all other browsers (tested Opera, Chrome, Firefox) everything works out fine. But in IE10 the contents of the directory printed to the screen seems to be a cached version. By using an FTP program I can verify that the file is actually uploaded with IE10, but it won't read the updated contents. I have to restart the IE10 browser in order for it to reload proper.</p> <p>Any ideas on how to force IE10 to read contents from scratch or maybe another solution?</p> <h2>Code for reload</h2> <pre><code>&lt;table&gt; &lt;?php $dir_handle = opendir("../../images/certificates"); while (($entry = readdir($dir_handle)) !== false){ // Only show PDF's $filetest = preg_match('/(.pdf|.PDF)$/',$entry); if ($filetest){ echo "&lt;tr&gt;"; echo "&lt;td rel='{$entry}'&gt;&lt;img class='pdfdownloadicon imageIcon' src='images/pdfdownload.png' /&gt;{$entry}&lt;/td&gt;"; echo "&lt;/tr&gt;"; } } $typeOfFileShow = "document"; ?&gt; </code></pre> <p></p> <h2>Script that executes above code</h2> <pre><code>function showFileBrowser(path) { currentTypeOfFileShow = path; $("#fileselectbox").load("includes/filebrowser."+path+".inc.php"); $("#filebrowser").slideDown('fast'); } </code></pre>
    singulars
    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.
    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