• Hello

    I used the plugin to change urls for images in the database for woocommerce products

    But still the urls in the media liberatry attachments still not changed and woocommerce show urls on media liberatry attachments not from database!!!

    How to change media liberary attachments urls?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @samysalahgad,

    WP Offload Media Support Team here, Thanks for reaching out with your query we would be happy to assist.

    Were you trying to offload already existing media in your Media Library? Please note that uploading existing Media Library to cloud storage is not supported in the free version.

    With that said, could you kindly try uploading a new media library item? and see if the offloading process is still not happening?

    Thank you.

    Thread Starter samysalahgad

    (@samysalahgad)

    @dbisupport

    Thank you for your reply. Am totally aware of Offload media to the cloud services but here in this case am offloading to another FTP server that I own

    I know it is not supported to offload to FTP in all offload plugins and am doing it manually by changing image urls

    I changed image urls in the database but still the media libereary attatchment urls not changed

    My question how to change WordPress media liberary imafe urls in bulk, like doing in in mysql or with search replace plugin?

    Hi @samysalahgad ,

    Apologies for the confusion. Not really sure what you are trying to do here.

    By default WordPress doesn’t save the full URL of an image in the postmeta table. In the Media Library it uses the site’s URL, and then attaches the uploads directory setting, then the _wp_attached_file meta value, to get the full image URL.

    If you’re using a plugin like WP Offload Media, then our plugin rewrites those URLs dynamically to the S3 version of the URL. It doesn’t make any changes to the database.

    It is not recommended to change the image data (_wp_attached_file) directly on the database, for better compatibility with other plugins. That’s why WP Offload Media doesn’t change anything in the database but rewrites them dynamically.

    This also means that, if your Media Library records are stored correctly in the postmeta table, they won’t have the full URLs, and Better Search Replace won’t be able to replace them.

    If you want to learn more how WP Offload Media rewrites URLs dynamically, you may read our developer’s guide below:

    https://deliciousbrains.com/wp-offload-media/doc/developer-guide/#local-to-provider-hooks

    Let us know if you have any other questions.

    Thread Starter samysalahgad

    (@samysalahgad)

    @dbisupport

    Your plugin do not support Cloudflare R2 or other S3 compitable cloud storage? I have buckets with Cloudflare R2 and Oracle cloud storage

    Hi @samysalahgad,

    Currently, WP Offload Media doesn’t support Cloudflare R2.

    We’re keeping an eye on the Cloudflare R2 service and hope to support it in the future should it become more compatible through changes to either R2 or WP Offload Media.

    As per other S3-compatible storages, we currently only offer support for Amazon S3, DigitalOcean, and Google Cloud Storage, but you could use some filters to try and get it to work with other S3-compatible storage providers such as Oracle Cloud Storage.

    My colleague Ian wrote an article about how he got MinIO to work with WP Offload Media, you can check it out below:

    https://deliciousbrains.com/s3-compatible-storage-provider-minio/

    There’s also a guide for Wasabi that works in a similar way to Minio.

    https://deliciousbrains.com/wp-offload-media/doc/wasabi-cloud-storage-quick-start-guide/

    It should also give you some ideas on how you can use the Tweaks plugin to add endpoints for Oracle Cloud Storage.

    https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront-tweaks/archive/master.zip

    Please let us know if you have any further questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.