Message Boards
how to get download link to download uploaded file from liferay dms?
sanjivani jadhav, modified 4 Years ago.
how to get download link to download uploaded file from liferay dms?
New Member Posts: 5 Join Date: 2/4/20 Recent Posts
Hi, all I am new to liferay , i have fileEntry object . using that object i want to download the file . my code is as follows; <liferay-ui:search-container emptyResultsMessage="There-are-no-Files"
total="<%=dlFileEntries.size()%>"
delta="5"
deltaConfigurable="true">
<liferay-ui:search-container-results
results="<%=ListUtil.subList(dlFileEntries,searchContainer.getStart(),searchContainer.getEnd())%>"/>
<liferay-ui:search-container-row className="com.liferay.document.library.kernel.model.DLFileEntry" modelVar="fileEntry">
total="<%=dlFileEntries.size()%>"
delta="5"
deltaConfigurable="true">
<liferay-ui:search-container-results
results="<%=ListUtil.subList(dlFileEntries,searchContainer.getStart(),searchContainer.getEnd())%>"/>
<liferay-ui:search-container-row className="com.liferay.document.library.kernel.model.DLFileEntry" modelVar="fileEntry">
sanjivani jadhav, modified 4 Years ago.
RE: how to get download link to download uploaded file from liferay dms?
New Member Posts: 5 Join Date: 2/4/20 Recent Posts
I am attaching file with this message
sanjivani jadhav, modified 4 Years ago.
RE: how to get download link to download uploaded file from liferay dms?
New Member Posts: 5 Join Date: 2/4/20 Recent Posts
RE: how to get download link to download uploaded file from liferay dms?
Attachments:
Mohammed Yasin, modified 4 Years ago.
RE: how to get download link to download uploaded file from liferay dms?
Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Hi,
You can use below utility for getting download url
You can use below utility for getting download url
DLUtil.getDownloadURL(fileEntry, fileVersion, themeDisplay, queryString)