- Go to your dashboard and choose YITH Plugins.
- Click on Amazon S3 Storing.
- Connect to your Amazon S3 account.
- Fill in your access key and secret access key. (If you do not know where to find your S3 credentials, click on the link)
- Click on save changes.
- Now the connexion with your Amazon S3 storage is done and you can start!
- After filling in your credentials, you can now set your bucket name
- If you do not know how to do that, click on the link.
- After this you have three options:
- Copy file to S3 (set as default option when uploading files from media library or downloadable product)
- Replace URL (general option for all the urls of the files, if the file is in amazon S3 and this is checked then the url is going to be a S3 URL)
- Remove from server (set as default option)
To add files to a product to be downloaded later on, you have to go to the product admin panel and select the checkbox “Downloadable” in order to get the options “Add File” and then “Choose File” as you can see in the image below. You can add several files if you like.
We can choose from where to add the file:
- From Amazon S3, in case you already have the file there. Just search and select the file you want and click in “Insert file url”. This will generate a shortcode url that will create a link when the user wants to download the product.
- From the media library.
- Uploading a file and copying automatically to Amazon S3 or just to the media library.
If you use WooCommerce, you can use this option to give customers access to digital goods.
- Permissions: you can choose for private or public, if you choose public everyone who has the URL will have access to the S3 storage with your digital goods.
We recommend to choose private so the files will be protected and you can select the time of the temporary URL to download the product which will start to count once the link of the downloadable product is displayed.
- URL Validity period: feel free to restrict the time the link will work. Enter a value in minutes.
- Send order link: this option lets you include a link to the order that has granted access to this download link. No order link will be sent if the user has no account on your website.
- Link of the email sent: Customize here the text of the email that is sent when a link is shared.
- Copy Automatically to Amazon S3: When you select the option Copy files also to S3, you can find this option when you open Media and select a file in your library because it is mentioned under the description: copy to S3, after copying it you have the option to remove it again from your S3, or remove it from the server:
2. Copy Manually to Amazon S3: There are four ways to copy files from the media library manually to your Amazon S3 storage, the first option is when you open a file in the media library:
The second option is while in the media library when selecting files, it gives you the option to copy or remove files from/to S3:
The third option is in the media library when selecting files for an individual bulk action:
To explain how to add files to S3 Amazon you have to go to products and set them as downloadable first,
then choose the file:
And the fourth option is in the media library after selecting files, in the drop down menu there are group bulk actions, for example remove all selected files from S3: