Closed momark closed 4 years ago
upload-directory
command functions. I've been testing this plugin on a test site with WP debugging + debug logging enabled. The following is logged for every media object uploaded to S3:[04-Dec-2019 03:25:53 UTC] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /path/to/my/app/wp-content/plugins/S3-Uploads/vendor/aws/aws-sdk-php/src/S3/Transfer.php on line 426
My guess is, this codebase (or at least parts of it) need an overhaul.
im specifically wanting to use this plugin to upload the entire "uploads" folder ...and definitely need the option to delete the files from the local web server after they are uploaded to s3 ....delicious brains offload s3 does this .....will this plugin delete the files that made it up to s3?
It doesn't do the deleting automatically, but you can delete the uploads folder after copying everything to your S3 destination. I'd suggest to just rename it initially, to make sure everything works well.
Remember to use the --verbose
flag for the upload-directory
command to see any errors.)
@momark you'll need to do a DB replacement for the old urls pointing to your local server, to instead point them to the S3 URL (presuming you changes thee urls, and are not mapping the old uploads url to S3 directory).
We already had a couple of thousand files on our server when we installed the S3-uploads plugin. We uploaded all the files to our S3 bucket and activated the plugin. Most of the image URLs have been changed to our bucket URL, but we have the following issues:
Thanks in advance.