Monday, February 2, 2009

How to generate Web URLs for Amazon S3 files using CloudBerry Explorer

Many people use Amazon S3 to host files available on their websites such as images, video and audio files. But one area of confusion for many users is how to generate the correct URLs . This is where CloudBerry Explorer for Amazon S3 can help.

How to generate a simple URL

Select the file to generate a URL and click the “Web URL” button on the toolbar. You will see the URL in the new Window. Now just copy it to clipboard using the button with the same name.


How to provide access to a URL for internet users

If you want to post URL on your website and make the file available to every internet user you will have to setup an ACL for this file to provide read access to anonymous users (AllUser group).
Select a file and open ACL Editor. Select “All Users” built-in group and make sure Read permission is “on”. Click ok to close ACL editor.

Now you can safely post the file on your website and internet users will be able to download it.
How to generate a singed or “time limited” URL

This is very simple; just click “Expired url after specified date” checkbox and select the date and time, when you want URL to expire.

Then click Generate button and you will get a long url with parameters that will be valid till the specified date

You can use “Copy to Clipboard” button to copy the URL and paste it for example to the body of an email message.
Note: the important advantage of signed URL that you don’t have to make any special ACL adjustments. Just generate a URL and you are ready to distribute it!

How to generate URLs for multiple files

Nothing could be easier, just select all files you want to generate URLs for and click “Web URL” button on the toolbar.

You will see the list of URLs for each of the selected file. Click copy to clipboard button and you are ready to paste URLs to other programs such as an HTML files editor.
In our future posts we will try to shed some light to another area of confusion that is how to use CNAME in Amazon S3 URLs. So stay tuned!
If you want to know how to setup CNAMEs and don’t want to wait till the next post we suggest that you check out Amit Agarwal’s post on the subject here.
You can download CloudBerry Explorer for Amazon S3 for FREE at http://cloudberrylab.com/