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.
I do like this:
var file = new File({the url to the file on my server});
And I get:
SecurityError: The operation is insecure.
I use the same origin, and on my local server: mylocal:88/init.php?page=upload
var file = new File('http://mylocal:88/init.php?file=12345');
Gives me this error. Port, protocol and domain is the same.
Why and how to create a new file without getting this error?