deliciousbrains / wp-amazon-s3-and-cloudfront

Automatically copies media uploads to Amazon S3 for delivery. Optionally configure Amazon CloudFront for even faster delivery.
https://wordpress.org/plugins/amazon-s3-and-cloudfront/
312 stars 150 forks source link

Replace media functionality #136

Closed gtrout closed 8 years ago

gtrout commented 10 years ago

We used to use the Enable Media Replace plugin and when we first migrated to Amazon S3 & Cloudfront it seemed to work, so long as versioning was enabled we chose the "Replace the file, use new filename, and update all links" option (vs. just "Replace the File"). For some reason, it no longer appears to work. I suspect it might have to do with enabling the "Remove uploaded file from local filesystem" as we're now serving our site from multiple ec2 instances. Is there a configuration that will interoperate with the Media Replace plugin again?

Alternatively, perhaps it would be possible to add a "Replace File on Cloudfront" functionality to this plugin that would replace a file, and attachment links, with a new version? The new file would probably have to be versioned, although incorporating automatic invalidation of the original file might allow the reuse of filenames, which might be convenient for some users.

A5hleyRich commented 8 years ago

We have a compatibility addon for Enable Media Replace.

https://deliciousbrains.com/wp-offload-s3/doc/enable-media-replace-addon/