Uncategorized

How to Upload Files from WordPress to Amzon S3 Easily

Hello Geeks, SO today you just need to know how you can link Amazon S3 cloud with your WordPress website right? Don’t worry, it’s so easy and you will be able add and delete all your files using your WordPress admin backend or frontend (using a Shortcode).

Let’s begin then,

First you need to have an Amazon Service account and make sure you can create a bucket there with public access allowed. After all, please put the following code lines into the CRONS under policy section.

[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"HEAD",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [
"ETag"
],
"MaxAgeSeconds": 3000
}
]

Then download the plugin named WordPress Amazon s3 – Wasabi Smart File Uploads.

Activate it got to the Media -> S3 Smart Uploads section.

Then copy the following code lines to the wp-config.php file and make sure you change the values with your information.

define('SSU_PROVIDER', 'aws');
define('SSU_KEY', 'your-access-key');
define('SSU_SECRET', 'your-access-secret');
define('SSU_BUCKET', 'your-bucket');
define('SSU_FOLDER', 'your-bucket-folder'); // upload files to specific folder under the bucket (optional)
define('SSU_REGION', 'your-bucket-region');
define('SSU_CAPABILITY', 'manage_options'); // determine who can upload files to the bucket (optional)

Then refresh the page where you were at and now you will see a interface like below if all the information you provided are correct.

 

Related posts
Uncategorized

AdSense vs AdMob

AdSense – Google Ads may be more familiar to you than AdSense. Google Ads are used to advertise…
Read more
Newsletter
Become a Trendsetter

Sign up for KDJ Guru's Daily Digest and get the best of KDJ Guru Articles, tailored for you.

Leave a Reply

Your email address will not be published. Required fields are marked *