Accessing Documents with WebDAV
You can access the Document Library from your desktop file manager via WebDAV. WebDAV is a protocol based on HTTP for managing files stored on web servers. WebDAV is supported by most major operating systems and desktop environments, including Linux, macOS, and Windows.
To access the Document Library folder from a file browser, you must use your log-in credentials and the WebDAV URL of the folder you want to access.
Generating WebDAV Password
Liferay DXP 2023.Q4+/Portal 7.4 GA98+
In the latest Liferay versions, you must generate a WebDAV password from your account settings to use in your WebDAV client. This is to avoid storing weak hashes used in digest authentication by WebDAV. Digest authentication is insecure and deprecated in Liferay. When trying to access a document through WebDAV for the first time, you’re prompted to generate a WebDAV password.
To generate a WebDAV password,
-
Click on the user-icon from your site’s home page and select Account Settings.
-
Select Password from the left-menu.
-
Scroll down to the WEBDAV PASSWORD section and click Generate WebDAV Password.
This displays your WebDAV username and an auto-generated password. This is a read-only field, so you must copy it for future use. If you click the button to generate the WebDAV password again, it generates a new one, rendering the existing one useless.
Now, follow the instructions below and use the WebDAV username and password when prompted.
Using the WebDAV Client to Access Documents
-
Open the Documents and Media application in the desired Site or Asset Library.
-
Click the Actions button for the desired folder () and select Access from Desktop.
-
Copy the folder’s unique WebDAV URL.
-
Follow the instructions for your operating system.
-
Windows: Map a network drive to the WebDAV URL. Enter your credentials when prompted. Once authenticated, the Document Library folder appears as a network drive.
-
macOS: Open Finder and select Go → Connect to Server. In the Server Address field, enter the WebDAV URL of the folder you want to access, then click Connect and enter your credentials when prompted.
-
Linux: For Linux, you must slightly modify the folder’s WebDAV URL. For KDE Dolphin, change the URL’s protocol to
webdav://
instead ofhttp://
. For GNOME Files, change the URL’s protocol todav://
instead ofhttp://
. Paste the modified URL in your file manager, press Enter, and enter your credentials when prompted.
-
Once set up, you can use your operating system’s file browser to add, edit, and delete files in the connected Documents and Media folder. If you edit a file in this folder on your file system, all changes appear in Liferay and the file’s minor version is incremented.