Skip to content
Files

Manage the URL of files uploaded to the files tool

Last updated: September 15, 2021

Applies to:

All products and plans

All files in your files tool have a unique file URL. You can use HubSpot Content Delivery Network (CDN) domain for hosting, or customize a file's URL to be hosted on any of your domains connected in HubSpot. 

Please note: files uploaded to the files tool are hosted on a public CDN file URL by default. HubSpot does not support the management of sensitive information. For more information, please see our Terms of Service. 

If you want the URL of your file to be removed from search engine results, or hidden from anyone outside your team, you can customize the visibility settings of your file URL in the file manager. All files attached to CRM records are private and hidden from search results by default.

Copy the URL of a specific file

To access the URL of a file:

  • Navigate to the files tool:
    • In your HubSpot account, navigate to Marketing > Files and Templates > Files.
    • If you have a Marketing Hub Starter account, navigate to Marketing > Files
    • If you're using HubSpot’s free tools, navigate to Marketing > Email. In the left sidebar menu, click the More tools dropdown menu, then select Files. 
  • Locate the file and click the file name
  • In the right pane, click the File URL dropdown menu and select the URL you want to use. The different URL options are based on the domains you have connected to HubSpot.
  • Click Copy URL to use or share this URL.
files-copy-url

 

If you connected a domain to HubSpot, you can change the default file URL that appears in the File URL by domain dropdown menu:

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to Website Pages
  • Click the SEO & Crawlers tab. 
  • In the Default File Manager Hosting Domain section, click the dropdown menu and select a domain.

  • Click Save to update your settings.

Please note: when visitors to your website load files on one of your pages, HubSpot may rewrite the domain of the associated file URLs to match the domain of the current page. Learn more about domain rewriting in HubSpot's developer documentation.

Customize the visibility of your file URL

By default, files uploaded to the files tool are hosted on a public file URL, and indexed by search engines. This means anyone with a direct link to the file URL can view this file on their web browser. It also means the file URLs are indexed by search engines and may appear in search results.

You can customize the visibility of your file URL in the File details panel:

  • Navigate to the files tool:
    • In your HubSpot account, navigate to Marketing > Files and Templates > Files.
    • If you have a Marketing Hub Starter account, navigate to Marketing > Files
    • If you're using HubSpot’s free tools, navigate to Marketing > Email. In the left sidebar menu, click the More tools dropdown menu, then select Files. 
  • Locate the file and click the file name
  • In the File details panel, check the File URL visibility on the web setting. To customize this setting, click the dropdown menu and select another option:
    • Public: the file URL will be publicly accessible to anyone who has or guesses the URL web address. Search engines will be able to index the file URL.
    • Public - noindex: the file URL will be publicly accessible to anyone who has or guesses the URL web address. Search engines are instructed not to index the file URL.
    • Private: the file URL will be private and require a URL to access. Search engines will not be able to index the file URL. After setting the file visibility to Private, choose from the following File URL options. 
      • Internal share link: the file URL will only be accessible to other users logged into the same HubSpot account, this will link directly to the file itself. 
      • Link to file preview: the file URL will only be accessible to other users logged into the same HubSpot account, this will link to a preview page for the file. 
      • Temporary 24hr public share link: the temporary file URL will be publicly accessible to anyone who has or guesses the URL, and will expire after 24 hours. If you would like to temporarily share the file again, you can create another share link.