Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
natanael berlian
where is deafult location of document and media?
March 26, 2013 11:35 PM
Answer

natanael berlian

Rank: New Member

Posts: 14

Join Date: March 25, 2013

Recent Posts

hello all,
sorry if my english is not good, and I'm newbie in liferay.
I have project to make one portlet where user can upload a document in my public page and then will save to folder in documents and media.
I just want to know where is location of documents and media if someone upload a file.

thanks,
natanael
Samuel Kong
RE: where is deafult location of document and media?
March 27, 2013 2:03 AM
Answer

Samuel Kong

LIFERAY STAFF

Rank: Liferay Master

Posts: 935

Join Date: March 10, 2008

Recent Posts

Knowing where the file is saved will actually lead you down the wrong path. Instead, you should rely on the API. Take a look at

DLAppServiceUtil#addFileEntry
DLAppLocalServiceUtil#addFileEntry

and/or

DLFileEntryServiceUtil#addFileEntry
DLFileEntryLocalServiceUtil#addFileEntry