New File() - The operation is insecure
<p>I've a problem with javascript. I'm making a AJAX based upload and have an array of all files uploaded. If the site is reloaded I want to restore all files to the array.</p>

<p>I do like this:</p>

<pre><code>var file = new File({the url to the file on my server});
</code></pre>

<p>And I get:</p>

<pre><code>SecurityError: The operation is insecure.
</code></pre>

<p>I use the same origin, and on my local server: mylocal:88/init.php?page=upload</p>

<pre><code>var file = new File('http://mylocal:88/init.php?file=12345');
</code></pre>

<p>Gives me this error. Port, protocol and domain is the same.</p>

<p>Why and how to create a new file without getting this error?</p>
