This topic describes how users can view and share files that have been uploaded to the files repository. Collaborating with a shared file browser makes it easier to ensure the entire team has access to the same information.
You can learn more about creating and uploading files to the repository in this topic: Using the Files Repository
If you hover over the icon for some types of files in the Files
web part, a pop-up showing a preview of the contents will be displayed for a few seconds. This is useful for quickly differentiating between files with similar names, such as in this image showing numbered image files.
To select a single file, use the checkbox on the left. You can also click the file name to select that file.
Many actions will operate on multiple files. You can check multiple boxes, or multiselect a group of files by selecting the first one, then shift-clicking the name of the last one in the series you want to select.
File Display in Browser
Double-clicking will open some files (i.e. images, text files including some scripts, etc) directly, depending on browser settings. Other files may immediately download.
File Download Link
For flexible sharing of any file you have uploaded to LabKey Server, you can make a download link column visible.
- Navigate to the Files web part showing the file.
- Make the Download Link column visible using the (triangle) menu for any current column, as shown here:
- Right click the link for the file of interest and select Copy link address.
- The URL is now saved to your clipboard and might look something like:
- This URL can be shared to provide your users with a link to download the file of interest.
Users will need to have sufficient permissions to see the file. For information on adjusting permissions, please see Security
For file types that can be displayed in the browser
, you can edit the download to display the content in the browser by removing this portion of the URL:
For other display options that can be controlled via the URL, see Controlling File Display via the URL
Note that this simple method for showing the Download Link column is not permanent. To configure your files web part to always display this column, use the file browser Admin menu, Toolbar and Grid Settings tab instead.
An alternative way to get the download link for a single file:
- Click the title of the Files web part to open the manage page.
- On the Manage Files page, place a checkmark next to the target file.
- At the bottom of the page, copy the WebDav URL.
Get the Base URL
To get the base URL for the File Repository, you can select the fileset
item on the Manage Files page, or from anywhere in the folder, go to (Admin) > Go To Module > FileContent
. The base URL is displayed at the bottom of the File Repository window, as shown below:
Link to a Specific Directory in the File Repository
To get the link for a specific directory in the repository, navigate to that directory and copy the value from the WebDAV URL field. You'll notice the subdirectories are appended to the base folder URL. For example, the following URL points to the directory "LabKeyDemoFiles/Assays/Generic" in the repository.