Created
June 10, 2020 17:31
-
-
Save codecreate-dev/1840cfda5580a75ffa5c03015e44cba7 to your computer and use it in GitHub Desktop.
Force download of files - media
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FilesMatch "\.(mov|mp3|pdf|mp4|avi|wmv)$"> | |
ForceType application/octet-stream | |
Header set Content-Disposition attachment | |
</FilesMatch> | |
# fails on iPhone but not iPad - any ideas for iPhones? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment