I am trying to download a JPG file through a php page. The code is pretty straight forward, it obtains the filename from the query string, reads the file and outputs to the browser. Here is the code:
<?php
$filename = $_GET["file"];
$bytes = filesize("PATH_TO_FOLDER/$filename")...