How we can change assets media folder to another folder?

I want to change assets media folder to another folder, like when I create a new folder here, it should create folder under custom folder instead default folder (/assets), I see we will no support this function anymore, but I only use it for AWS S3, so I can't custom folder, I think it will not mapping with AWS S3 files


Environment

  • Xperience by Kentico version: 31.0.0

  • .NET version: 10

0

Answers

You can customize the global assets folder with CMS.Base.AssetOptions which are configured using the options pattern.

You can also customize your storage module which configures how Xperience's file access APIs map to cloud storage, but you will need to explore this yourself.

0

Hi Sean,

Thanks for you information, I've tried your second solution but it not work, it's only work on ~/assets folder, when I tried to another folder, it still create data under /assets folder, I also check with this document , this config work on K13 but nor sure why it not work on XbyK

https://docs.kentico.com/documentation/developers-and-admins/api/files-api-and-cms-io/file-system-providers/amazon-s3

1.00

If I use CustomRootPath = "/assets", it's can worked but only show new image, not show old image,

Thanks

0

To response this discussion, you have to login first.