Posts tagged ‘upload video in liferay’

How to upload .mp3/.mp4/.mov… files in Liferay?

To upload .mp3/.mp4/.mov … files follow the below steps.

Step1:

Add the below key in portal-ext.properties file

or

create a new hook portlet to overhide the portal.properties


#
# A file extension of * will permit all file extensions.
#
# You can map a GIF for the extension by adding the image to the theme's
# image display and document library folder. The wildcard extension of *
# will be ignored. For example, the default image for the DOC extension
# would be found in: /html/themes/_unstyled/images/document_library/doc.gif.
#
dl.file.extensions=\
.bmp,.css,.doc,.docx,.dot,.gif,.gz,.htm,.html,.jpg,.js,.lar,.odb,.odf,\
.odg,.odp,.ods,.odt,.pdf,.png,.ppt,.pptx,.rtf,.swf,.sxc,.sxi,.sxw,.tar,\
.tiff,.tgz,.txt,.vsd,.xls,.xlsx,.xml,.zip,.jrxml,.mp4,.mp3,.mov

Step2:

Upload the video files in document library add a tag video.

Hint: we are adding tag here to display only video file.

Displaying list of video files in liferay? check here

Advertisements