in my php I evaluate the the filesize
if (($width !=1600) || ($height !=1100)) {
echo "wrongsize"; }
else { echo "justright"; }
in my file i try and evaluate the the response to update the html
'onComplete' :function(event, queueID, fileObj, response, data) { if(response == "wrongsize") { $('div#uploadError').html("*The image should be a jpg, 1600px by 1100px"); }
The problem is it does not trigger the update. If I take it outside the if loop it works.
Can anyone help?