Where are the files saved after uploading to Liferay located?

I made a portlet that loads a document from a form.

I tried to make a simple dynamic java project and made formto load a document, this document is saved in LiferayWorkspace/.metadata/plugins/.../project/document.docx.

Now I used this formin the portlet and it saves a document that works fine, but I was wondering where it saved my uploaded document?

I have already looked for the tomcat directory and possible areas.

Also, if someone tells me where in liferay 6.1 using the "Dynamic Data List" portlet, the documents will be posted after posting.

+5
source share
3 answers

Liferay , portal-ext.properties, liferay-portal-tomcat-6.1/liferay-portal-6.1/.

#
# FileStore
#
dl.store.file.system.root.dir=${liferay.home}/data/document_library
+4

portal-folder/data/document_library, liferay.

+2

These are properties in ROOT/WEB-INF/lib/portal-impl.jar/portal.propertiesthat determine where liferay stores documents, you can override these properties by creating portal-ext.propertiesand including your custom value:

#
# FileSystemStore
#
dl.store.file.system.root.dir=${liferay.home}/data/document_library

Additionally,
you can also set the directory temp(temporary) for downloaded files, i.e. When you use UploadRequestliferay to temporarily store them on the server to get the file from the request:

#
# Set the temp directory for uploaded files.
#
#com.liferay.portal.upload.UploadServletRequestImpl.temp.dir=C:/Temp
+1
source

All Articles