I want to get a file via file_get_contents to copy and rename it and then trigger the download. In other words, a user click a link to a controller, the controller does the business and then return the new file to download.
All fine, the only thing I can't do till now is rename and force donwload of the file.
You can change the headers and echo out the file: