I have a Drupal 7 site. After some form actions, I want the user to be able to click on a link to download a csv file of the results, but I don't need the csv hanging around the site forever. I have the file being written to the temporary file system using the
Is there functionality in core that can offer this file for download? If so, what is it? Or else, do I need to/can I write a menu callback function that sets the mime header and all that?