Files

Watch Video Tutorial

Add New Files

To upload a file to your site:

  • Click on the Content tab, then click the Files tab.
  • Click the blue + Add Media button, and then click File.
Drupal interface with Content, Files, and Add Media links circled
Drupal interface with the File link circled
  • Click the Browse button and select your file.
  • Add a file name in the Name field. This should match the name of your file so that the media item is easy to find when you need to delete the file later.
  • Click the Save button when you are finished.
Drupal interface showing the name field matching the file name and Name, File, and Save circled

You can also upload a file while editing your page's content. Click the "Insert Media" button in your page's editor menu as you would when uploading an image. Select File on the left side instead of Image.

Drupal Add File interface screenshot

If you need to add multiple files, it's best to add them all at once. See Upload Multiple Files for more information.


To add a link to a file while editing a page when the file has previously been added to the library:

  • Highlight the text you want to link to the file.
  • Click the link button in the toolbar.
  • Type part of the file name in the search box. A list of possible files will appear. Click on the file you want to link to and the Link URL will be automatically added.
  • Click the check mark button to save.
Drupal interface with link icon circled, and showing highlighted link text and a file being selected from the menu

NOTE: When you are linking to a file there is no way to control how a linked file functions for your users as that is something controlled by their browser. As an example, when the user clicks a PDF link we cannot force their browser to always download the PDF or to always have the PDF open in the same page.


Replace or Update a File

Some files need to be replaced with updated versions from time to time. Replacing an existing file and removing the old file, rather than simply uploading a separate new file, helps prevent search engines and AIs from finding outdated information on old files on your website. This also helps remove potentially inaccessible files and takes up less server space.

How to Replace or Update a File:

  • Navigate to the Media tab and search for your file. Type all or part of the file name into the Name field. You can also select "File" from the Media Type list to narrow the search if needed. Then click "Apply Filters."
  • Click the small pencil icon in the upper right corner to edit your file.
Screenshot showing how the media library in Drupal
  • On the file edit screen, Click the "Remove" button. 
Screenshot showing hwo to remove a file
  • Once the file is removed, click the "Browse" button to upload a file from your computer.
Screenshot showing how to upload a new file
  • Click "Save."
  • Once your file is replaced, it is not completely deleted from the website. Follow the "Remove the File from the Files Tab" steps below to completely delete the old file from the website.

Delete Files

Remove the File from the Files Tab

  • Navigate to the "Files" tab to completely delete an old file from your website. If you replaced an old file with a new file as described in the section above, you still need to delete the old file from the Files tab.
  • To search for your file, type all or part of the file name into the "Filename" field and click the Filter button.
  • Once you find your file, click the "Delete" button on the far right next to your file.
  • You may be prompted to make sure you want to delete your item. If so, click "Delete" again.
Screenshot showing how to delete a file from the files tab in Drupal

NOTE: The delete option on the "Files" tab is only available on Drupal 10 websites. If your website is not in Drupal 10, you can contact us to have your file deleted.

Remove the File from the Media Tab

In some instances, even after a file has been deleted from the list in the Files tab, a media file may remain. It is important to do a quick search for the file in the Media tab to ensure that a related media file is not left behind.

  • Click on the Media tab.
  • Type all or part of your file name in the "Name" field and then click "Apply Filters." When you see your file appear below, click on the pencil icon in the top right corner of the media file icon to edit the media file.
screenshot of the Drupal interface with the Media tab, Name field, Apply Filters button, and pencil icon circled in red
  • If the file has been deleted from the Files tab, the File section will not show a file name and will display the Browse button instead, as shown in this screenshot below. 
  • To remove the media file, click the red Delete link next to the red trash can icon at the bottom of the page. 
screenshot of the Drupal interface with the Browse button and Delete link with trash can icon circled in red
  • Click Delete again in the confirmation panel that opens to delete the media file permanently.

Upload Multiple Files

On the Add File page, click the Archive link located at the top right of the page under the UPLOAD tab.

Screen shot of the Archive link
Screen shot of the uploader for multiple files
  • Click on the Browse button and find the compressed file folder that you want to add to your site.
    NOTE: The only compressed file formats that can currently be uploaded are .zip, .tar, . tgz, .gz, and .bz2.
  • The best practice is to only have just the files you want to upload in your compressed file. Although, should you need to single out a specific type of file to upload you can do so in the Pattern text field box. Type .* followed by the file type you want to batch upload. .*jpg for example, would cause only jpg images to be batch uploaded. However, it is strongly recommended that your compressed folder contain only the files you want to batch upload as it will make the process much easier for you.
  • After clicking the Submit button on the Archive upload page, it will process your compressed folder file and upload it to your site. It will automatically take you to the main Content page and a green banner will appear at the top of the page with a successful upload message. In the example below the message is: Extracted test-zip.zip and added 3 new files.
Screen shot of the Uploaded message

Change Multiple Files

  • Occasionally you may need to make updates to several files at the same time.
  • From the Files page, you can check the boxes to the left of the files that need updating.

    Screen shot of multiple files selected
  • Select the relevant choice from the UPDATE OPTIONS dropdown menu.
  • The most commonly used choice is the Delete selected files option which will, as it states, delete the files. 
    NOTE: There is no undo button for these updates so make sure you really want to choose that update option.

    Screen shot of the file options
  • You are very unlikely to use any of the other three options, and unless you know what you are doing, it is not recommended to use them.