Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Manikandan S
Prevent .exe file in Message Boards
June 12, 2012 1:53 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Hi all,

Message Boards portlet is accepting .exe file. Is there any way to prevent .exe file in Message Boards?
Manikandan S
RE: Prevent .exe file in Message Boards
June 13, 2012 1:47 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Any help?
Amos Fong
RE: Prevent .exe file in Message Boards
June 13, 2012 1:56 AM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1844

Join Date: October 7, 2008

Recent Posts

Message boards uses doc library for it's backend so I think setting this property should do it:

1    #
2    # A file extension of * will permit all file extensions.
3    #
4    dl.file.extensions=*
Manikandan S
RE: Prevent .exe file in Message Boards
June 13, 2012 3:15 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Thnks for your reply. But I don't want .exe file get upload. Is there any way?
Amos Fong
RE: Prevent .exe file in Message Boards
June 13, 2012 3:50 AM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1844

Join Date: October 7, 2008

Recent Posts

yea so you can change this property to just allow the files you want. For example:

dl.file.extensions=.doc,.pdf,.xls,.zip
Manikandan S
RE: Prevent .exe file in Message Boards
June 13, 2012 11:36 PM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Yeah perfect its working fine. Thanks Amos.