WordPress.org

Forums

Amazon S3 and Cloudfront
where is the object path stored in db for this plugin? (2 posts)

  1. weizhuus
    Member
    Posted 1 year ago #

    Hi,
    I am setting up a staging env for the wp instance. I want the file loaded to s3 in different path for different instances. Can someone tell me where the information is stored in db? the "Object Path" of the S3 setting. I can certainly do a db dump and grep for it. If someone knows which table, it will save me some time.

    Thanks :)

    https://wordpress.org/plugins/amazon-s3-and-cloudfront/

  2. weizhuus
    Member
    Posted 1 year ago #

    Here is the option in db

    select * from wp_options where option_name = 'tantan_wordpress_s3';

    I can update the option_value with other value for 'object-prefix'

    a:5:{s:6:"bucket";s:8:"mybucket";s:10:"cloudfront";s:0:"";s:13:"object-prefix";s:6:"mypath";s:10:"copy-to-s3";s:1:"1";s:13:"serve-from-s3";s:1:"1";}

    but make sure change the value after s: to match the length of the object-prefix, otherwise the deserialization fails. a bit tricky but I got it work

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Amazon S3 and Cloudfront
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.