Multiple questions on Media library, and its behavior

sanpasit pongsatat asked on March 28, 2023 12:49

Hello all,

I am developing a page using Kentico's media library, Kentico 12 SP - MVC.

Seems that, when we upload new image to media library, Kentico creates new image to the file system both MVC project and admin (CMS) project. When we retrieve them on frontend pages, it uses the image directly from the file system.

Questions are:

  1. Let's say I delete some of that images from MVC project, on file system. Is there a way to regenerate the uploaded files (from media library) to the file system?

  2. Is it possible to configure Kentico, to store media files (uploaded from media library) in database ? (Same like 'File' or 'Attachments' type of field on page type)

Thank you.

Correct Answer

Juraj Ondrus answered on March 29, 2023 06:02

  1. You can manually copy the file from the admin app's file system to the respective folder. OR, use some tool for this.
  2. No, that is the main purpose of media files - they are always stored on disk to save DB space. If you want to use DB, then you need to use page attachments.
0 votesVote for this answer Unmark Correct answer

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