on-internet
← Community

Downloading a file with an arbitrary name

Stack Overflow ·

Is it possible to let your user download a file with an arbitrary name? For example, there is a file called "4324ffsd34.jpg". I want people to download it via download.php, with a different name (like "filetodownload.jpg"), without renaming the original file. Or, if I'm sending data from a variable to the user as a download, how can I name it?

Comments

Sign in or sign up to comment and upvote.

No comments yet.