Message Boards

Disable versioning in document & media

thumbnail
Aravinth Kumar, modified 2 Years ago.

Disable versioning in document & media

Regular Member Posts: 152 Join Date: 6/26/13 Recent Posts

Hi All,

We would like to disable the versioning completely in documents & media, so that we always have one version. I m able to disable the version for particular article by passing DLVersionNumberIncrease.NONE in updateFileEntry method.
Issue : We are able to download the file which is updated, it works as expected but we dont see the changes in control panel preview images / last updated time is not proper. Any inputs on this and do we have anyother way to disable the version completely through portal-ext or osgi/configs?  

dlAppLocalService.updateFileEntry(
 long userId, long fileEntryId, String sourceFileName,
 String mimeType, String title, String description, String changeLog,
 DLVersionNumberIncrease dlVersionNumberIncrease, InputStream is,
 long size, ServiceContext serviceContext)