A
Alan Silver
Hello,
I have a page on a site where people can download audio files. At the
moment, the link on the site sends them to a page where the download is
logged in a database, then does a Response.Redirect to the actual audio
file.
This works fine, but has the disadvantage that the file that is sent
back has the original file name, which is currently just the database
ID. I would like to set the file name to something more meaningful, like
FredsAudio-HowToSellYourCar.wav (or whatever).
Any way to do this? I know I could just store the wav files with
meaningful names in the first place, but that means a) a major rewrite
of a working site and b) more complex code sorting out the file names.
It would be much easier if there were a way to set the file name that
the user sees.
TIA
I have a page on a site where people can download audio files. At the
moment, the link on the site sends them to a page where the download is
logged in a database, then does a Response.Redirect to the actual audio
file.
This works fine, but has the disadvantage that the file that is sent
back has the original file name, which is currently just the database
ID. I would like to set the file name to something more meaningful, like
FredsAudio-HowToSellYourCar.wav (or whatever).
Any way to do this? I know I could just store the wav files with
meaningful names in the first place, but that means a) a major rewrite
of a working site and b) more complex code sorting out the file names.
It would be much easier if there were a way to set the file name that
the user sees.
TIA