Can someone help me on how to upload and link existing files to s3. WP Offload Media Lite provide this feature but it is paid. Any alternate way to do this?
Can someone help me on how to upload and link existing files to s3. WP Offload Media Lite provide this feature but it is paid. Any alternate way to do this?
2
Answers
Solution: I am able to do this with just a simple SQL Query and move wp-content/uploads folder directly to s3. No replace is required for updating link. Table of WP Offload Media Lite plugin used for linking 'wp_as3cf_items'
Query for linking Existing files to s3:
For Multisite, do this for each site with table prefix.
As you are using the free version so you have to manually upload all the existing files into AWS S3 then you need to run the following function to update the
wp_as3cf_items
tableThe above function is fully tested and work perfectly
Reference: How to setup free CDN for WordPress using AWS S3
Hope this helps!