留言板
Disable download option from document and media.
Lokesh Sharma,修改在8 年前。
Disable download option from document and media.
Junior Member 帖子: 54 加入日期: 15-7-30 最近的帖子
Hi,
I have to disable the download of files uploaded in document and media for certain web content.
How to achieve it.
Thanks.
I have to disable the download of files uploaded in document and media for certain web content.
How to achieve it.
Thanks.
Olaf Kock,修改在8 年前。
RE: Disable download option from document and media.
Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
Each of the documents has individual permissions, which you can set.
I don't understand the part "for certain web content" - as "Web Content" names components of Liferay's CMS, unrelated to the document library.
I don't understand the part "for certain web content" - as "Web Content" names components of Liferay's CMS, unrelated to the document library.
Lokesh Sharma,修改在8 年前。
RE: Disable download option from document and media.
Junior Member 帖子: 54 加入日期: 15-7-30 最近的帖子
Hi Olaf Kock,
Can you tell what permission has to be set on a particular document to make it non downloadable
Thank u.
Can you tell what permission has to be set on a particular document to make it non downloadable
Thank u.
Lokesh Sharma,修改在8 年前。
RE: Disable download option from document and media.
Junior Member 帖子: 54 加入日期: 15-7-30 最近的帖子
I am using structure and template to display a content in which I have a link of a document uploaded in document and media , it is getting downloaded I have to disable it, and show it only.
Samuel Kong,修改在8 年前。
RE: Disable download option from document and media.
Liferay Legend 帖子: 1902 加入日期: 08-3-10 最近的帖子
Hi Lokesh
What type to document are you referring to? Is it an image or some other type of document?
Also, in your mind, what would be the difference between "downloading" the document and only "showing" the document? Aren't they the same thing?
What type to document are you referring to? Is it an image or some other type of document?
Also, in your mind, what would be the difference between "downloading" the document and only "showing" the document? Aren't they the same thing?
Lokesh Sharma,修改在8 年前。
RE: Disable download option from document and media.
Junior Member 帖子: 54 加入日期: 15-7-30 最近的帖子
Hi,
It is an html file it is downloading , I want it to new tab without downloading.
It is an html file it is downloading , I want it to new tab without downloading.
Juan Gonzalez,修改在8 年前。
RE: Disable download option from document and media. (答复)
Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
If you want text/html files to be shown as inline, change this property:
adding html mime types to the default list:
https://github.com/liferay/liferay-portal/blob/6.2.3-ga4/portal-impl/src/portal.properties#L5522
mime.types.content.disposition.inline
adding html mime types to the default list:
https://github.com/liferay/liferay-portal/blob/6.2.3-ga4/portal-impl/src/portal.properties#L5522
Lokesh Sharma,修改在8 年前。
RE: Disable download option from document and media.
Junior Member 帖子: 54 加入日期: 15-7-30 最近的帖子
Hi Juan Gonzalez,
Thank u it solved my purpose.
Thank u it solved my purpose.
Tomas Polesovsky,修改在8 年前。
RE: Disable download option from document and media.
Liferay Master 帖子: 676 加入日期: 09-2-13 最近的帖子
Hi Lokesh,
please be aware that by adding HTML to the inline configuration, anybody who can upload a document can execute a XSS attack by uploading a malicious HTML file. When any other authenticated user opens that file, it can steal user account, which in case of administrator is a bit deadly
please be aware that by adding HTML to the inline configuration, anybody who can upload a document can execute a XSS attack by uploading a malicious HTML file. When any other authenticated user opens that file, it can steal user account, which in case of administrator is a bit deadly