Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Response Header Based On MIME

Status
Not open for further replies.

oleversion2

Programmer
Sep 2, 2007
1
GB
I want to send a "Content-Disposition: attachment" response header if the file is a video; if it has a MIME of video/*. I can't see to find the appropriate Apache directive (using Apache 2.0.33) for this.

This directive:
Code:
Header set "Content-Disposition" "attachment"

Sends the header fine but what can I use for the conditionality? <FileMatch> would work but isn't particularly nice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top