Fórum

RE: Lifay allow to upload any type of files to document library

bo li, modificado 11 Anos atrás.

Lifay allow to upload any type of files to document library

Junior Member Postagens: 38 Data de Entrada: 14/11/11 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Lifay allow to upload any type of files to document library

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Lifay allow to upload any type of files to document library

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Ravi, he's setting from Control Panel -> Server Administration -> File Uploads -> Allowed File Extensions
thumbnail
Ravi Kumar Gupta, modificado 11 Anos atrás.

RE: Lifay allow to upload any type of files to document library

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Lifay allow to upload any type of files to document library

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Lifay allow to upload any type of files to document library

Junior Member Postagens: 38 Data de Entrada: 14/11/11 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Lifay allow to upload any type of files to document library

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Lifay allow to upload any type of files to document library

Junior Member Postagens: 38 Data de Entrada: 14/11/11 Postagens Recentes
no, not the name of the file. the extension of the file. .exe to .txt.
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: Lifay allow to upload any type of files to document library

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
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.