To set up Cyberduck to access a file repository on LabKey Server, follow these instructions:
Tested 3rd Party clients
A WebDAV client called "WebDAV Redirector" is built into Windows 8 and Windows 10. Assuming your server is configured to use SSL, you can connect from Windows directly to a LabKey Server file repository. (I.e., any LabKey Server folder that has a Files web part.) Configuring the WebDAV Redirector to work over non-SSL connections is not recommended.
To connect, you can use the Window Explorer to map a network drive to the file repository URL, using the URL shown below.
To connect using a Windows Command prompt, use "net use". For example:
net use Y: https://hosted.labkey.com/labkey/_webdav/myProject/myFolder/@files/ /USER:johndoe@labkey.com * /PERSISTENT:YES
Explanation of the command above:
Command line item | Description |
---|---|
Y: | The drive letter that will allow the client to copy multiple files to the LabKey Server using familiar Windows commands . It can’t be in use at the time; if it is, either choose a different drive letter or issue a net use Y: /D command first to disconnect the Y: drive. |
https://hosted.labkey.com/labkey/_webdav/myProject/myFolder/@files/ | The URL to the WebDAV root. Use double quotes if there are spaces in the URL. (To get this URL, see the screen shot above.) |
_webdav | This component of the URL applies to all WebDAV connections into LabKey Server. |
myProject | The LabKey Server project name. |
myFolder | The folder name within the project - the location of the Files web part. |
@files | The directory root for the file content. This folder is viewed by the Files web part in a LabKey Server folder. Files managed by the pipeline component appear under a root directory called @pipeline. |
johndoe@labkey.com | the same user email you would use to sign into LabKey Server from a browser. |
* | Causes Windows to prompt for your LabKey password. |
/PERSISTENT:YES | Causes Windows to remember the drive letter mapping between restarts of the system. |
Once you’ve mapped a drive letter to LabKey Server, you can use COPY, REN, XCOPY and other standard Windows command to move data files between the client and LabKey Server.
The mapped network drive feature is accessible in the Windows File Explorer There is a button for "Map Network Drive" above the files/folders list. ( On Windows 8, make sure the "This PC" node in the left panel Windows Explorer has selected the "This PC" node in the left hand pane. )
You can now use Windows Explorer to drag-and-drop files into the @files directory on the server.
When using OSX, you do not need to install a 3rd party WebDAV client. You can mount a WebDAV share via the dialog at Go > Connect to Server. Enter a URL of the form:
https://<username%40domain.com>@<www.sitename.org>/_webdav/<projectname>/
To have the URL generated for you, see the instructions above for Cyberduck.
Tested clients: