Media Library: Require title and description on upload

Gustavo Quevedo asked on December 3, 2019 15:48

Hi,

Is there any way to force users to enter a title or a description when uploading files to the Media Library?

  • We have managed to require them when editing the file properties by modifying the file \CMS\CMSModules\MediaLibrary\Controls\MediaLibrary\MediaFileEdit.ascx.cs (Save button in the edit tab at the bottom)
  • but users can still just upload files without being required to enter values (Upload buttom at the top, and then select files).

It's a Kentico 12 MVC application.

Thanks in advance!

Kind regards,

Gustavo

Correct Answer

Peter Mogilnitski answered on December 3, 2019 18:34

Not out of the box. Uploading an image and entering name/description are two different processes. Modifying internal code will create problems with upgrade. You could store an image in content tree as file page type. This way you can force name and description.

Image Text

2 votesVote for this answer Unmark Correct answer

Recent Answers


Gustavo Quevedo answered on December 4, 2019 12:57

Thanks Peter

0 votesVote for this answer Mark as a Correct answer

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