Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
bo li
Lifay allow to upload any type of files to document library
20 de Maio de 2012 18:42
Resposta

bo li

Ranking: Junior Member

Mensagens: 34

Data de entrada: 14 de Novembro de 2011

Mensagens 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?
Ravi Kumar Gupta
RE: Lifay allow to upload any type of files to document library
20 de Maio de 2012 20:38
Resposta

Ravi Kumar Gupta

Ranking: Liferay Legend

Mensagens: 1145

Data de entrada: 23 de Junho de 2009

Mensagens recentes

Check the portal.properties file for this documentation about extensions.

1
2#
3    # A file extension of * will permit all file extensions.
4    #
5    dl.file.extensions=*
6    #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
Hitoshi Ozawa
RE: Lifay allow to upload any type of files to document library
20 de Maio de 2012 20:54
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7990

Data de entrada: 23 de Março de 2010

Mensagens recentes

Ravi, he's setting from Control Panel -> Server Administration -> File Uploads -> Allowed File Extensions
Ravi Kumar Gupta
RE: Lifay allow to upload any type of files to document library
20 de Maio de 2012 21:38
Resposta

Ravi Kumar Gupta

Ranking: Liferay Legend

Mensagens: 1145

Data de entrada: 23 de Junho de 2009

Mensagens recentes

Yep Hitoshi, Thats right.

I just thought this will give him some pointers on what value to set in control panel. emoticon
Hitoshi Ozawa
RE: Lifay allow to upload any type of files to document library
21 de Maio de 2012 04:23
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7990

Data de entrada: 23 de Março de 2010

Mensagens 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
RE: Lifay allow to upload any type of files to document library
25 de Maio de 2012 13:52
Resposta

bo li

Ranking: Junior Member

Mensagens: 34

Data de entrada: 14 de Novembro de 2011

Mensagens 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.
Hitoshi Ozawa
RE: Lifay allow to upload any type of files to document library
26 de Maio de 2012 05:02
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7990

Data de entrada: 23 de Março de 2010

Mensagens 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
RE: Lifay allow to upload any type of files to document library
26 de Maio de 2012 07:46
Resposta

bo li

Ranking: Junior Member

Mensagens: 34

Data de entrada: 14 de Novembro de 2011

Mensagens recentes

no, not the name of the file. the extension of the file. .exe to .txt.
Hitoshi Ozawa
RE: Lifay allow to upload any type of files to document library
26 de Maio de 2012 17:38
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7990

Data de entrada: 23 de Março de 2010

Mensagens 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.