ianmjones
Forum Replies Created
-
I think you’re looking for the as3cf_pre_upload_attachment filter, which you can use to “abort” the offload of images etc.
Alternatively, check out the as3cf_allowed_mime_types filter (also in that Tweaks plugin), where you can change which file types WP Offload Media is allowed to offload.
Random errors are difficult to debug.
I recommend grabbing yourself a license and contacting us through the plugin (so we get the always helpful diagnostic info) and we’ll take it from there.
If you’re not actually looking for the Pro tools that come with WP Offload Media, then all you need is the Bronze license, happy to support you.
I think you’ve posted to the wrong support area, I think you need the following one…
Just use wp_get_attachment_url(), WP Offload Media hooks into that.
Not quite sure I understand the question, but “Offload Remaining” does a full catch-up and offloads **all** Media Library items that have yet to be offloaded.
You can use the as3cf_pre_upload_attachment filter to put a condition on those offloads though and abort the offload of any attachments that don’t meet some criteria.
No, but Lite only offloads **new** Media Library uploads.
For offloading existing Media Library items you’ll want WP Offload Media.
Umm, no idea, maybe your theme is broken?
That
amazonS3_cache
record is only used by WP Offload Media to speed up lookups, it’s not for output.The current version of WP Offload Media (Lite) requires
PutObjectACL
so that it can specifically set the ACL to either public or private. It does not need to read it.We have the following doc…
https://deliciousbrains.com/wp-offload-media/doc/custom-iam-policy-for-amazon-s3/
At present it’s still relatively open in its sample permissions, I have it on my todo list to go through and test just how restrictive we can get the sample permissions.
Be warned, future updates to WP Offload Media (Lite) may require slightly different permissions than your current sample set. We’ll make sure the doc reflects that as needed.
There’s not a way to delay automatic offloading by a specific time interval.
However, with WP Offload Media (Pro) you could turn off the “Copy Files to Bucket” setting, and then as and when you’re ready to offload, either run the “Offload Remaining” tool from WP Offload Media’s settings page to catch up, or visit the Media Library, bulk select the media you’d like to offload, then use the “Copy to Bucket” action.
@domenic95 Do you have an as3cf_items table?
What do your “amazonS3_info” postmeta records look like?
Try something like…
function pre_upload_attachment( $abort, $post_id, $metadata ) { $file = get_post_meta( $post_id, '_wp_attached_file', true ); if ( is_string( $file ) && false !== strpos( $file, 'KEEP' ) ) { $abort = true; } return $abort; }
Make sure to uncomment the associated
add_filter( 'as3cf_pre_upload_attachment' ...
line in the Tweaks plugin’s constructor.Please confirm what you mean by “when I delete it from my media library”?
If you mean turning on WP Offload Media’s “Remove Files From Server” setting? Then what URL is the featured image trying to use when not displaying, and what URL should it be using?
If you mean you actually go into the Media Library and “Delete Permanently”? Then no, please don’t do that, WP Offload Media only works with properly registered Media Library items.
How long has that browser tab been open, could the time based security token expired?
Refreshing the page doesn’t help?
Unlimited.
The next major version of WP Offload Media (Lite) will have updated SDKs.