Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Marian Seitner
[Liferay 6.1 beta 4] Cannot change root directory of document library?
November 23, 2011 1:57 AM
Answer

Marian Seitner

Rank: New Member

Posts: 6

Join Date: May 6, 2011

Recent Posts

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:
1
2dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
3dl.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
RE: [Liferay 6.1 beta 4] Cannot change root directory of document library?
November 23, 2011 12:46 PM
Answer

Marian Seitner

Rank: New Member

Posts: 6

Join Date: May 6, 2011

Recent Posts

I found it myself. The new document library uses other property keys:
1dl.store.file.system.root.dir=/path/to/directory
ruchi sharma
RE: [Liferay 6.1 beta 4] Cannot change root directory of document library?
April 3, 2012 2:10 AM
Answer

ruchi sharma

Rank: Junior Member

Posts: 95

Join Date: March 24, 2011

Recent Posts

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