troubleshooting Question

Dynamic Content-Disposition filename in httpd.conf?

Avatar of EmmDub
EmmDub asked on
Apache Web Server
7 Comments1 Solution2218 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros