Lifay allow to upload any type of files to document library

bo li, modified 13 Years ago. Junior Member Posts: 38 Join Date: 11/14/11 Recent Posts
I am not sure about what types of file liferay allow to upload, I know that we can configue the upload file extensions in the control panel.

But I tried to modify the .exe to .txt, I still can upload it.

Does this mean I can upload any type of file?
thumbnail
Ravi Kumar Gupta, modified 13 Years ago. Liferay Legend Posts: 1302 Join Date: 6/24/09 Recent Posts
Check the portal.properties file for this documentation about extensions.


#
    # A file extension of * will permit all file extensions.
    #
    dl.file.extensions=*
    #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
thumbnail
Hitoshi Ozawa, modified 13 Years ago. Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
Ravi, he's setting from Control Panel -> Server Administration -> File Uploads -> Allowed File Extensions
thumbnail
Ravi Kumar Gupta, modified 13 Years ago. Liferay Legend Posts: 1302 Join Date: 6/24/09 Recent Posts
Yep Hitoshi, Thats right.

I just thought this will give him some pointers on what value to set in control panel. emoticon
thumbnail
Hitoshi Ozawa, modified 13 Years ago. Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
Can you provide us with the exact steps so we can reproduce the error? Please include Liferay's version number and which bundle you are using.
It may be a bug but we need to verify it first.
bo li, modified 13 Years ago. Junior Member Posts: 38 Join Date: 11/14/11 Recent Posts
Liferay6.1-ce-ga1

First I configured Documents and Media allowed upload file .txt.

Then I modified abc.exe to abc.txt.

The file was uploaded successfully.
thumbnail
Hitoshi Ozawa, modified 13 Years ago. Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
First I configured Documents and Media allowed upload file .txt.
Then I modified abc.exe to abc.txt.
The file was uploaded successfully.


You mean file name was changed successfully.
bo li, modified 13 Years ago. Junior Member Posts: 38 Join Date: 11/14/11 Recent Posts
no, not the name of the file. the extension of the file. .exe to .txt.
thumbnail
Hitoshi Ozawa, modified 13 Years ago. Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
no, not the name of the file. the extension of the file. .exe to .txt.


So the point is that only file with permitted file extension can be uploaded but that file extension can be changed to those are prohibited to be uploaded.