Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Lifay allow to upload any type of files to document library
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?
But I tried to modify the .exe to .txt, I still can upload it.
Does this mean I can upload any type of file?
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
Ravi, he's setting from Control Panel -> Server Administration -> File Uploads -> Allowed File Extensions
Yep Hitoshi, Thats right.
I just thought this will give him some pointers on what value to set in control panel.
I just thought this will give him some pointers on what value to set in control panel.
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.
It may be a bug but we need to verify it first.
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.
First I configured Documents and Media allowed upload file .txt.
Then I modified abc.exe to abc.txt.
The file was uploaded successfully.
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.
no, not the name of the file. the extension of the file. .exe to .txt.
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.