Fórumok

[Liferay 6.1 beta 4] Cannot change root directory of document library?

Marian Seitner, módosítva 12 év-val korábban

[Liferay 6.1 beta 4] Cannot change root directory of document library?

New Member Bejegyzések: 6 Csatlakozás dátuma: 2011.05.06. Legújabb bejegyzések
Hi all,

I want the content of the document library to be stored in a custom location on the disk.

I added the following lines to the portal-ext.properties file:

dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
dl.hook.file.system.root.dir=/path/to/directory

but apparently this doesn't work. I can create folders and store documents in the library but they don't show up in the configured directory.

Any ideas how to fix this?

Thanks,
Marian
Marian Seitner, módosítva 12 év-val korábban

RE: [Liferay 6.1 beta 4] Cannot change root directory of document library?

New Member Bejegyzések: 6 Csatlakozás dátuma: 2011.05.06. Legújabb bejegyzések
I found it myself. The new document library uses other property keys:
dl.store.file.system.root.dir=/path/to/directory
ruchi sharma, módosítva 12 év-val korábban

RE: [Liferay 6.1 beta 4] Cannot change root directory of document library?

Junior Member Bejegyzések: 95 Csatlakozás dátuma: 2011.03.24. Legújabb bejegyzések
Hello

By default document library stores the files/folder here ..................(1)
dl.hook.file.system.root.dir=${liferay.home}/data/document_library

But, I want to change the file storage to be at the following path (i override this property in portal-ext.properties and is working fine. And the uploaded files in document library are getting stored in the new path below.)
dl.hook.file.system.root.dir=${liferay.home}/data/document_library/2 ................... (2)

The problem is when I am trying to get the earlier uploaded documents from the previous location (1) , I am getting the error below

ERROR:
The requested resource was not found.
http://local.chemistanddruggist.co.uk/c/document_library/get_file?uuid=ea7a459b-ef1f-4eb4-928d-ab432f32bdbd&groupId=10242


I am having no problem in accessing the documents from the later path (2) in web content.

How do you manage to solve this probelm ?

Thanks
Ruchi