Forum Moderators: open
The trick is usually accomplished using CGI or other server-side scripting so that when the user requests the file (uploaded as something like myfile.txt) it is automatically downloaded as the real file type (e.g. myfile.avi). The scripts, rather like the ones that protect images, are available commercially if you search hard enough.
Ammon Johns