I have a simple script to read and return the image (or other media file) to downloader like this:
<?php
header("Content-type: image/jpeg");
header("Content-Disposition: attachment; filename=imageName.jpg");
readfile("/Path/to/my/mediaFile/imageName.jpg");
?>
For this simple script I don't know that the downloader is complete downloaded my file or not.
How can I do to know this?
Thank you in advance for all help 🙂