• Hello,

    I’ve checked S3 offloaded images, and figured that the folder structure offloaded by WP Offload Media does not look like typical wordpress media. It has something like /24136252/ between year/month/day and actual filename. Could be due to version control,, but wonder what happens if I download those files by cli and add to wordpress’s image uploads folder. Is this extra folder structure added to database? I hope I do not have to change the folder structure.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Keith

    (@keithkhl)

    Looks like I have to create a code line (not sure what kind) to remove that additional folder, if I want vanilla WP can recognize the file location. Plz correct me if I am wrong.

    In DB, the path was certainly stored in wp_as3cf table, but, again, if I manually download image files from S3 by cli, then I have to replace wp_posts table’s image path by wp_as3cf table, is it?

    Guess either one of the two has to be done, if I use manual download from S3, assuming that I removed local media files.

    Is there any code lines or SQL query lines that I can use of? or is it all custom solution that I have to find a third party? Creating dependency like this does not sound reasonable.

    Lastly, if I want to recover the files without above two custom code / query lines, is it possible to download media files and recover folder structure if I use Pro version?

    Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @keithkhl,

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

    The ‘/24136252/’ folder path is added when you have ‘Object Versioning’ enabled – https://deliciousbrains.com/wp-offload-media/doc/settings/#object-versioning

    Manually downloading of your files using CLI/query is not recommended.
    It is much safer to use the Pro version of WP Offload Media to download these files back to your server – https://deliciousbrains.com/wp-offload-media/upgrade/

    We offer a no questions asked 60 day 100% money back guarantee. https://deliciousbrains.com/wp-offload-media/pricing/#guarantee

    Thank you.

    Thread Starter Keith

    (@keithkhl)

    @dbisupport Thx for the details. If I use the pro version, will the downloaded image files in the local folder be stored as it was with vanilla wordpress?

    If so, guess I first have to buy your plugin to download all images in S3 and ask for refund. Is it how folder structure issue can be sorted?

    Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi Keith,

    Yes, when you use the Pro version of WP Offload Media, it will allow you to download back all the images from your S3 bucket to your server. They will be downloaded back in their original locations, as recorded in the as3cf_items table.

    You can check your diagnostics in the Support tab of WP Offload Media Lite to see how many Total Offloaded Media Items you have. You can then purchase a license appropriate for the total. If you purchase a license with a limit lower than your total offloaded media, some non-essential features would be disabled.

    https://deliciousbrains.com/wp-offload-media/doc/non-essential-features/

    We’re not sure why you were using CLI to download back the images from S3. Are you going to stop using Amazon S3 buckets? Was “Remove Local Media” enabled?

    “if I manually download image files from S3 by cli, then I have to replace wp_posts table’s image path by wp_as3cf table, is it?”
    — WP Offload Media rewrites URLs on the fly. We do not change image paths in the database. We keep track of image URLs using the custom as3cf_items table. However, if you were using a WordPress theme builder or plugin that was not using proper WordPress functions to save images but instead saves the S3 URL as is, you may have to run a find/replace on those paths.

    Let us know if you have any other questions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Folder structure becomes different on S3’ is closed to new replies.