Configuring Kentico Media Library with Amazon S3

Umar Farooq asked on September 11, 2014 15:15

My goal is to configure Kentico media library with Amazon S3.

In the guide by Kentico for integration with Amazon S3, it is mentioned that we can map some particular directory to an S3 bucket. Please refer to very last point of step 6 under "Storing files in different buckets" topic.

Storing files in different buckets -> Step-6 -> Map a directory to the provider. This is the directory that you want to store in the bucket.

My question is that what does it mean by "Map a directory"? Will directory be synced and everything going to this directory will be copied to S3 bucket too? So files will resides both on local file system directory and also on S3 bucket or files will be transferred from local file system directory to S3 bucket without leaving a copy on local file system? More specificly, if I map /site code name/media directory with S3 then all the files uploaded by media library will reside both in this directory and S3 too or will be just moved to S3 bucket and will be removed from /site code name/media directory?

Recent Answers

Umar Farooq answered on September 12, 2014 07:17

Hi Kentici Support, any update on this?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 12, 2014 16:06

By all means, I'm not Kentico Support but if you want to get specifics from them, I'd suggest emailing them at support AT kentico DOT com.

The point of using a CDN like S3 is to have that data stored off of your server, so I don't know why it would keep a local copy. Have you tried it yet? When you "map a directory" that would be a directory in your "media" folder. If you did /sitecodename/media that would sync your whole library and not a specific library.

0 votesVote for this answer Mark as a Correct answer

Filip Ligač answered on September 18, 2014 13:35 (last edited on September 18, 2014 13:37)

Hi Umar,

First of all I would like to note that Q&A section is intended for Kentico community and we cannot guarantee a timely response. If you need help more promptly, please forward your questions to

Regarding your questions, to map a directory, it means to forward all media files to a certain S3 bucket on the storage which you can cpecify as it is described in the documentation you were referring to. However, it does not necessarily mean all current media files will be moved from your local file system to the storage. Unfortunately there is no automatic synchronization mechanism which would make it work. In fact only new files which you add to Media library will be automatically pushed to Amazon S3 after you configure Kentico to use this storage. If you wanted to push your existing files there as well, you can copy them to the respective bucket (e.g. via CloudBerry Explorer for Amazon S3) and regenerate the links by re-importing those files in Media libraries -> your library -> Files -> Selected files: Import.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.