I was creating a php image upload script. The script sends a post request and (should) have received a json response.
This is the line for checking mime type.
$mimetype = system("file -bi -- ".escapeshellarg($_FILES["file"]["tmp_name"])); //line 63
and after few line I set the JSON header:
header('Content-Type: application/json'); //line 124
but the js does not works. On checking network tab in chrome: