I have setup FineUploader 4.0.3 and it's working wonderfully in all browsers except IE8/IE9.
The return message I'm getting is:
https://www.dropbox.com/s/t367y3zx3z2n9to/Screenshot%202013-11-05%2018.26.17.png
'Error when attempting to access iframe during handling of upload response (Access is denied.)"
Currently my server-side code is returning a response like so:
$output = array('success' => true, 'msg' => $msg, 'filename' => $filename);
header('Content-type: text/plain');
echo htmlspecialchars(json_encode($output), ENT_NOQUOTES);
Any assistance would be greatly appreciated.
Adding in updated JS and PHP below
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: origin, x-requested-with, content-type, cache-control');
header("Content-Type: text/html");
$output = array('success' => true, 'msg' => $msg, 'uuid' => $uuid);
$json = json_encode($output);
echo "$json<script src=\"http://jd.loc/iframe.xss.response.js\"></script>";
JS:
debug: true,
uploaderType: 'basic',
button: $chooseFileBtn,
multiple: false,
request: {
endpoint: 'file/upload'
},
validation: {
allowedExtensions: ['jpeg', 'jpg', 'gif', 'png'],
sizeLimit: 2 * (1024 * 1024), // 2 MB
itemLimit: 1
},
Please note I've also tried it using:
cors: {
expected: true
},
Didn't seem to make a difference. Thank you!
Also adding in the exact response from the server:
{"success":true,"msg":{"time":1383755346,"hash":"86dd782965cb25d4be96ccce11ae4b63","type":"image/jpg","size":40207},"uuid":"62031b35-c596-4fbe-9d11-16f50b0a8a8e"}