File Library: Manage images and files

Introduction to the File Library

Every file you add to an article in your knowledge base is stored in your File Library. You can access files there to update:

You can also delete files you no longer need and recover files that have been incorrectly deleted.

And for each file, you can view its references: all the places that this file is being used.

Adding file labels, deleting, and recovering files can be done for individual files or for multiple files in bulk. Changing file names or the files themselves must be done for individual files only.

To access your File Library, go to Library > Files. You should see something like this:

A screenshot showing the File Library with numbers at each major control

  1. To add files directly to the File Library, use the + Add Files button. This will open a pop-up where you can select the files to upload. See Adding files and images in bulk for more info.
  2. You can choose to Show Active Files or Show Deleted Files. If you select Show Deleted Files, you'll see a Restore option instead of Delete.
  3. If you've created File Labels, use the Filter by Labels dropdown to filter the File Library to files containing one or more file labels.
  4. You can filter the File Library by File Types. The options are:
    • Show All File Types (default)
    • Show Images Only
    • Show Videos Only
    • Show PDFs Only
    • Show Word Files Only
    • Show Excel Spreadsheets Only
    • Show Powerpoint Presentations Only
    • Show Audio Files Only
    • Show Zip Files Only
  5. You can search for a word or file name. Any search phrases entered here will search within the selected filters. Use the default settings (Show Active Files, no Filter by Labels, Show All File Types) to search your entire File Library of active files.
  6.  When you've selected an individual file, the Edit link will activate. You can click that link to open a pop-up to edit the file's name, file itself, and add or remove file labels. This option is disabled when you have no files selected or multiple files selected. See Editing and updating files for more info.
  7. When you've selected one or more files, the Bulk Label option will activate. You can click that link to open a pop-up to add file labels to all selected files. This option is disabled when you have no files selected or a single file selected. See Using labels as filters for using the label filter and File Labels for more information on file labels themselves!
  8. When you've selected one or more files, the Delete option will activate. You can click that link to delete the selected files. (Note: deleting files will not delete references to those files from categories, articles, or other places they're used, like your Settings > Style. Be sure the file is no longer in use before deleting!) If you've selected the Show Deleted Files option, instead of a Delete option, you'll see a Restore option. See Restoring deleted files for more info on restoring deleted files!
  9. Use the Files per page options to change how many files are displayed per page in the library. Options are 20, 50, and 100. (Default is 20.)
  10. You can toggle between two Display Modes. The default mode is the icon or thumbnail view in the screenshot above, represented by the icon with six squares in two rows. You can toggle to list view by clicking the list icon next to it. Not sure which view would be best? See Which File Library display mode should I use? to help decide!

In order to edit, bulk label, or delete files, you'll need to select them. In icon view, you can select a file by clicking anywhere on the file's thumbnail (1 in the screenshot below). You can select all four files in a row by checking the box to the left of the row (2 in the screenshot below):

When a file is selected in the icon view, a white checkmark on a blue square will appear in the upper right corner of the thumbnail.

See List View for making file selections in List View.

To open an individual file for viewing rather than editing, click on the hyperlinked name below the file thumbnail. The file should open in a new tab if it's supported by your browser, or download if it's not.

List View

Once you select the List View by clicking on the list icon in the Display Mode section of File Library, the filter options and other controls look the same, but the library view changes:

Sample File Library in List View

Now, you'll see a table with various columns:

  1. Name: displays the file's name.
  2. References: displays a summary count of the places this file is used. Click the View details link to open a pop-up to see a more detailed list.
    This functionality was added 28 December 2022 and requires a one-time reindex process to be run to fully populate. If your knowledge base existed before 28 December 2022, contact us to run that reindex!
  3. Labels: displays any File Labels added to the file.
  4. Type: displays the file's type, as designated by the file extension.
  5. Size: displays the total size of the file. File Library will only allow files up to 200MB in size.
  6. Date Created: displays the date the file was originally created.
  7. Last Modified: displays the date the file was last edited. If it has never been edited, the Date Created and Last Modified will be identical.

You can click any of the underlined column headers (all columns except Labels) to sort the view by that column. Clicking the same column multiple times will toggle between ascending and descending sort. The column used to sort will have an up arrow or down arrow next to it. For example, in the screenshot above, our File Library is sorted by Last Modified, descending order.

To select a single file in list view, click anywhere in that file's row or explicitly in the checkbox to the left of the file name. A checkmark will appear in the box the left of the file to indicate it's selected. To select multiple files, use the filter and search to display the files you need to select, then click in the checkbox to the left of the Name column header to select all displayed files for editing.

To open an individual file for viewing, click on the hyperlinked name. The file should open in a new tab if it's supported by your browser, or download if it's not.

Which File Library view should I use?

The Display Mode in Files lets you toggle between Icon view and List view. Each view has its own best use cases:

Icon view or thumbnail view is best used for:

  • "Seeing" the files: if you're working a lot with visual or video content, icon view can help you visually scan your files quickly to see if they need updates or confirm you have the right file
  • Seeing the most recently edited files first (they are always presented at the start of the icon view)

List view is best used for:

  • Sorting your file library in different ways
  • Seeing the file labels that are added to various files
  • Seeing the exact date the file was created or last modified
  • Auditing file types to, for example, remove all .jpg files and replace them with .png files
  • High-volume bulk labeling or bulk delete/recovery. If you can use the filters and search to display only the files you need, you can bulk-select the entire library for these bulk operations!

They're equally useful for:

  • Editing individual file details (name, file labels, the file itself)
  • Deleting or restoring files

Refer to the Introduction to the File Library for an overview of the Files library and the icon view; refer to List View for more details on that view.

Add files and images directly in File Library

To add multiple images, videos, or files at once:

  1. In the left navigation, select Files. The Files library opens.
  2. Select Add Files. The Upload Files modal opens.
  3. Add files to the modal using one of these two methods:
    1. Drag files from your desktop or File Explorer and drop them in the modal near Drag files here.
    2. Select Browse to Files, select the files you want to add, and open them.
  4. Once you've added the files you'd like to upload, select Upload Files... to complete the upload.
    An Upload Files modal with four files added. An arrow points to the Upload Files... button.Sample Upload Files modal with files added
  5. A progress bar displays in the modal while the upload runs. Once the upload is complete, the modal closes.

Duplicate files
If you upload a file with the same name as something that already exists in your File Library, KnowledgeOwl appends a random 6 character code on the end, using a-f0-9. This helps enforce uniqueness in the file names and URLs and makes it easier to identify when you may have duplicate files.

Edit and update files in the Files library

Every file you add to an article in your knowledge base is stored in your Files library. You can access files there to:

Rename a file

By default, files are uploaded with a name based on the file name you originally uploaded (or a random string if you copied and pasted an image into the article editor). This is the name that will show up when the file is downloaded/opened.

If you'd like to edit this to something more human-friendly or search-friendly:

  1. In the left navigation, select Files. The Files library opens.
  2. Select the file you'd like to edit. If you have a lot of files, you may need to use the labels or search to find it.
  3. Select the Edit link near the top of the page or the gear cog icon in the file metadata modal at the bottom of the page:

    The Edit File modal opens.
  4. Edit the File Name to be what you'd like, then Save File.

Update a file

Linus is a busy little owl, and he updates a lot of screenshots and articles. Whenever he can, he reuses existing screenshots in the Files library. When it comes time for him to update that screenshot, rather than manually replacing the screenshot in every single article he used it in individually, he updates the existing file in Files with the new screenshot.  This approach has some great advantages:

  • It's a real time-saver for editors (one update in Files rather than manually editing a bunch of articles).
  • It prevents Files from getting bloated with old/outdated/duplicate copies of files.
  • It guarantees that everywhere the screenshot was used, it's updated to the latest version of the file.

Highly recommended
We strongly recommend updating files this way!

To make this kind of update:

  1. In the left navigation, select Files. The Files library opens.
  2. Select the file you'd like to edit. If you have a lot of files, you may need to use the labels or search to find it.
  3. Select the Edit link near the top of the page or the gear cog icon in the file metadata modal at the bottom of the page:
    Select file and click one of the two Edit links
    The Edit File modal opens.
  4. Select Upload New File:
    Select Upload New File
  5. Navigate to and select the new version of the file you want to replace the existing one. The name of the new file you've selected displays in the lower left corner.
  6. Once you confirm the file you uploaded is the correct one, select Save File.
    Confirm new file to be uploaded in lower left is correct and Save File

Still seeing the old image?
Browser caching may prevent you from immediately seeing an uploaded screenshot. If you're still seeing the previous screenshot, try a hard refresh.

As the warning at the top of the Edit file modal says, while most articles will update immediately, some can take up to an hour to update. Contact us if you have issues with a file not updating.

Find a file's URL

There are a few places within KnowledgeOwl where you might need to have the URL to your image. Many Look and feel customizations need a file URL, for example.

You can copy the URL for a file quickly from the Files library:

  1. In the lefthand navigation, select Files. The Files library opens.
  2. If you're viewing the Files library in Icon view, select anywhere in the file's card. A checkmark displays in the upper right of the thumbnail once you've selected it. If you're viewing the Files library in List view, select the checkbox to the left of the file Name or select anywhere in the file's row to select it. The file's details open in a modal at the bottom of the page once you select it.
  3. Select Copy Link in the file detail modal to copy the URL to your clipboard:
    Screenshot showing the File Library with a single file selected, details showing in lower left, and callout pointing to the URL in those detailsSelect Copy Link in the file detail modal to copy the file's URL to your clipboard

File references

Any time a file is used, we track the reference so that you know whether it's safe to delete that file.

File references are tracked for:

  • Articles
    • Article body content: will check all draft articles and published articles. Will not check inactive article versions.
    • Article URL redirect
    • Article thumbnail
    • Article banner
  • Categories
    • Category URL redirect
    • Category icon
    • Category description
    • Custom content category body
    • Category thumbnail and banner (for custom content categories and topic display categories)
  • Snippet body content
  • Theme
    • Customize > Style (Custom HTML & CSS) logo
    • Customize > Style (Custom HTML & CSS) favicon
    • Customize > Style (Custom HTML & CSS) > Customize HTML, CSS, and JS > Custom HTML templates
    • Customize > Style (Custom HTML & CSS) > Customize HTML, CSS, and JS > Custom CSS
  • Other
    • Customize > Homepage content editor

The file references will update once you save changes on any of these pages.

Limitations
Refer to Limitations for some use cases where references aren't tracked.

You can view the file references in Files in two places:

  • In Icons View and List View, when you select an individual file, the file metadata modal at the bottom of the page displays the file's references:
    Sample references in the file metadata modal
  • In the List View, References is included as its own column. This column displays the same format as the file metadata modal:
    Sample references in the List View References column

In either location, select View details... to open the References modal. References will display in 5 sections:

  • Theme References: Contains references in Customize > Style (Custom HTML & CSS), including the logo, favicon, Custom HTML templates, and Custom CSS.
  • Article References: Contains references within article body, URL redirect, banner, thumbnail. Each article includes a badge that displays the article's current publishing status.
  • Category References: Contains references within category description, icon, URL redirect, etc. Each category includes a badge that displays whether it's active or deleted.
  • Snippet References: Contains references within snippet body. Each snippet includes a badge that displays whether it's active or deleted.
  • Other References: Contains references within Customize > Homepage custom content editor.

Here's a sample showing references in all areas:

The References modal of a specific file. The Theme References section lists Body. The Article References lists two published articles and one rejected article. The Category References section lists one active category. The Snippet References section lists one active snippet. The Other References section lists the Homepage.Sample file References list showing all possible references.

You should be able to safely delete any files which show 0 references for all reference options. This also lets you track down all the places a file is used in case you need to update content relating to it!

 

Limitations

There are a few limitations to using the file references:

  1. Files used in snippets: Files used in snippets only list the snippet reference. They won't list all the places that snippet may be referenced.

    Suggested workaround
    If a file has Snippet References, check the Snippet references for a complete list of all the places the file is used.

  2. Only files in this knowledge base: File references will track references to the file within the same knowledge base the file is stored within. If you have multiple knowledge bases and the file is used in other knowledge bases, those references aren't tracked.

    Suggested workaround
    Add a file label or some other method to alert yourself not to delete files referenced by other KBs. For example, we use used by [other KB name] and do not delete for files we reference in other knowledge bases.

Restoring deleted files

Sometimes, you delete the wrong file by accident--maybe you didn't realize you'd selected an entire row of files, or two files are named identically and you deleted the wrong one.

KnowledgeOwl allows you to restore files you've deleted. Restoring files will:

  • Restore access to them by the original URL.
  • Restore any links to files using that original URL.
  • Add the file back to your main Files view.
  • Add the file back into the Add from Library search within the editor.

To restore deleted files:

  1. In the left navigation, select Files. The Files library opens.
  2. The first dropdown defaults to Show Active Files. Select the second option from this dropdown: Show Deleted Files.
    Screenshot of the File Library. The file-status dropdown is selected and Show Deleted Files option is highlighted and has an arrow pointing to it.Select Show Deleted Files instead of Show Active Files
  3. The Files list updates to display all deleted files in your knowledge base, with the most recently deleted listed first. You can use the other dropdown filters or the search to locate the file(s) you'd like to restore.
  4. For each file you'd like to restore, select the file:
    1. In icon view, select anywhere in the file thumbnail to add a checkmark in the upper right. To restore an entire row of files, select the checkbox to the left of the row.
    2. In list view, select anywhere in the file's row to add a checkmark to the left of the file. To select all files within a filter/search, check the box in the upper left next to the Name column header.
  5. Once you've finished selecting the files, select Restore near the top of the page.
    Select Restore to begin the restoration process.

    A confirmation modal opens.
  6. Review the file names listed in the modal. Select OK to confirm the restoration. When the restoration is complete, the restored file won't display in the Show Deleted Files view.
  7. You can now use the dropdown at the top to Show Active Files. The restored file will be there and will again display in your knowledge base.

Purge and fully remove files

By default, when you delete a file in the Files library, KnowledgeOwl doesn't fully delete this file--you can still see it and restore it.

However, there are times when you might want to fully purge or remove deleted files in a knowledge base:

  • Just to keep things tidy/avoid confusion
  • Due to a GDPR request or other incident

Our support team can run a full purge of all deleted files in your Files library. If you need this service, please contact us and let us know which knowledge base you'd like to purge all deleted files from. Once purged, files will be completely removed from your knowledge base.

Behind the scenes, we move these files to a different storage location for 30 days. We can recover them during that 30-day window, but after 30 days, they are fully deleted from all of our systems and are not recoverable, so use this service with caution!

Manage files with file labels

Similar to tags in articles, you can add labels to files so that you can filter your Files library more easily.

File Labels:

  • Are only visible to authors with access to the File Library in app.knowledgeowl.com.
  • Can be used as filters in the Files library.
  • Can be added to/removed from files in the Files library.
  • Can be created in the Files library or in the Labels tab.
  • Can be edited, deleted, and merged in the Labels tab.

For more information, refer to File Labels.

Use labels as filters

Once you have added file labels to your files, those file labels can be used to filter your Files library. To do so:

  1. In the left navigation, select Files. The Files library opens.
  2. Select the Filter by Labels dropdown.
  3. Select the label(s) you'd like to use as filters. If you select more than one label, only files with all the selected labels are displayed.
    Sample Filter by Labels selection.
  4. Once you select a label, the Files display updates to show only the files with that label.
  5. To remove a label from your filter, select it again to deselect it or reload the page.

You can combine the labels filter with the Show Active/Deleted Files and Show File Type filters, too.

Who can access the files stored in my knowledge base?

The Security settings for your knowledge base (Security and access > Security settings) determine the general security requirements for readers to access your knowledge base.

The files you upload to your knowledge base--PDFs, Excel sheets, screenshots, Word documents, etc.--do not automatically use this same security.

By default, even if your knowledge base requires login, the files you've uploaded do not require login. This is by design so that you can give customers the link to specific documents and they can easily download the file by clicking on that link or URL without having to log in to your knowledge base.

However, you can adjust your security settings so that readers have to be logged in to access files and images stored within your knowledge base.