Skip to content

Set Content-Disposition response header on the files which are offloaded to Cloudfront using WP Offload S3

Notifications You must be signed in to change notification settings

samiahmedsiddiqui/content-disposition-with-wp-offload-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Content Disposition With WP Offload S3 Plugin in WordPress

Set Content-Disposition response header on the files(Images, PDFs, csv etc) which are offloaded to Cloudfront using WP Offload S3 Plugin.

These are some basic examples which can be manipulated accroding to the requirements.

Following filter is tested with the WP Offload S3 v1.6.2.

Examples

This example sets the Content-Disposition header on all the uploaded files.

This example checking from where the file is uploading. If it is uploading from some specific page then set Content-Disposition header for that file.

About

Set Content-Disposition response header on the files which are offloaded to Cloudfront using WP Offload S3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages