0
I have a site where users can download the files.
These files are with the path in an sql table and have an access key and the request id.
Hj file download is direct at url, ex:
<a href="/downloads/arquivo.mp3" download>Download</a>
I wanted something to download without showing the file link, something to do like: site.com/? usuario=123&request=18&key=28 then when he accessed this link, he downloaded the file, taking the links from the table "downloads"
In the downloads table I have
id|pedido|chave|arquivo
1 | 18 | 28 |downloads/arquivo.mp3
The part of checking the table, making the query and bringing the information know do, I will use the $_GET and use the SQL query, but I do not know how to download it in the download click without showing the way
$_POST does not resolve instead of $_GET?
– White
Show just what I needed! I hadn’t found.
– Leandro Marzullo