How to insert HTTP Headers for Media Files?
-
Does anyone know how I can instruct this plugin to add HTTP headers (Content-Disposition: Attachment) to media files when they are uploaded?
I have this setup on my WordPress .htaccess, but S3 ignores my Mimetype headers since it’s not on my server.
I found this bit of code in the lib.s3.php file in the plugin editor… but I’m not sure if that’s what I should be editing:
$header[] = “Date: $httpDate”;
——> $header[] = “Content-Type: $contentType”;
$header[] = “Content-Length: $contentLength”;https://www.ads-software.com/plugins/amazon-s3-and-cloudfront/
- The topic ‘How to insert HTTP Headers for Media Files?’ is closed to new replies.