I am storing images into MySQL as type BLOB. I want to know how do I get the filename of the file (a.jpg) and make the link available for download rather than show.
Currently:
I can only get the jpg as I found this on the internet: but I would like the file name as well as the extension.
$ext = explode('.', $_FILES['userFile']['name']);
$filename = $_POST['userName'] . '.' . $ext[count($ext)-1];