For reading media file through a PHP controller