Remove "Content-Type: application/json" header from upload.php. Causes double request in old IEs.