automattic / s3-media-sync Goto Github PK
View Code? Open in Web Editor NEWA WordPress plugin to sync uploads to an Amazon S3 bucket from a VIP Go instance.
A WordPress plugin to sync uploads to an Amazon S3 bucket from a VIP Go instance.
We noticed that UpdraftPlus is unable to connect to AWS when this plugin is active. It turns out UpdrafPlus also bundles the AWS PHP SDK, but requires a much older version of the package. In order to prevent conflicts like this it would be helpful to namespace the dependencies.
It would be great if we can add another subcommand to upload a single attachment only, like
wp s3-media upload <attachment_id>
The benefit would be that, based on a known list of attachment IDs that we need to upload, we could combine WP_CLI with xargs to upload each attachment using parallel threads giving us much more refined control on the execution of the upload process.
As an alternative to S3 it would be great if we could allow additional endpoints. Human Made does this with the s3_uploads_s3_client_params
filter](https://github.com/humanmade/S3-Uploads/blob/master/inc/class-s3-uploads.php#L272) which I think we can add here:
https://github.com/Automattic/s3-media-sync/blob/master/inc/class-s3-media-sync.php#L302
Let me know if this makes sense, then all one has to do to change the endpoint is:
// Filter S3 Uploads params.
add_filter( 's3_uploads_s3_client_params', function ( $params ) {
$params['endpoint'] = 'https://your.endpoint.com';
$params['use_path_style_endpoint'] = true;
$params['debug'] = false; // Set to true if uploads are failing.
return $params;
} );
After editing an image in the WordPress admin, the image is not copied to the S3 bucket.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.