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": [
"AllowedOrigins": [
"ExposeHeaders": [
"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

Installing Odoo 16 on a CentOS 8 Server

Odoo is a powerful open-source business application platform that can be used to manage a wide range…
Read more

How to Filter Items Inside an Array

To filter and remove objects from an array that have empty values (either null, undefined, or an…
Read more

5 Tips for Optimizing Your AdSense Earnings

AdSense is a popular ad platform that allows website and blog owners to monetize their traffic by…
Read more
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 *