Amazon S3

Using this plugin you can link to files hosted on Amazon s3 so that you can serve secure, expiring download links to your users.

PHP Version 5.5 or Higher Required

Since version 2.0.0 of this extension, your server needs to run PHP version 5.5.0 or higher in order to run the Amazon S3 extension. This is because the new library created by Amazon to interact with the new Amazon API (v4) requires PHP 5.5 or higher.

Installation

  • Unzip and upload the plugin’s folder to your /wp-content/plugins/ directory
  • Activate the extension through the ‘Plugins’ menu in WordPress

For more information on installing and managing plugins see here

Setup

Before the plugin can be used, you need to setup your Amazon S3 Access keys. To do this, go to Downloads > Settings and look for the Amazon S3 tab.

Here you need to enter your Amazon S3 Keys which you can find on your Security Credentials page.

Usage

Once setup, you can add downloads normally. When you create or edit a download you simply enter the object URL Amazon S3 gave you, see screenshot below.

Get object URL in Amazon S3 panel
Get object URL in Amazon S3 panel

You don’t need to add in the query string for keys etc, the extension will calculate and add them automatically when a user requests the file.

Setting your S3 Region

The Amazon S3 extension will detect your S3 bucket region automatically by the download URL. In most cases we can correctly detect the S3 region and you can leave the setting to it’s default: Detect Automatically. In some specific cases Amazon allows you to change the default URL structure by allowing e.g. custom endpoints. If for some reason the extension does not detect your region correctly you can set your correct region in the extension settings.

Set your S3 Bucket Region via the Amazon S3 settings
Set your S3 Bucket Region via the Amazon S3 settings

Was this article helpful? Yes · No