I've got a repository of files that are to be uploaded by users. In order to avoid filename collisions, we prefix the original filename with a unique ID. The problem happens when other users download the file; the ID is still in the filename. I know that the Content-Disposition response header field can suggest a filename, so I want to strip the ID from the start of the filename and use that.
The problem is that I don't know if I can do that with mod_headers in httpd.conf. It's easy enough to do with normal code, but I was hoping that mod_headers could evaluate an expression, or something along those lines.
The filenames are in this format: path/to/file/12345_originalFilename.ext