Update MediaAccess.php to check allow_url_fopen is true or not