Files

Provide a direct download link to a file hosted on the files tool

Last updated: July 15, 2020

Applies to:

Marketing Hub  Professional, Enterprise
CMS Hub  Professional, Enterprise
Legacy Marketing Hub Basic

Learn how to get the direct link for a file hosted on the files tool.

  • In your HubSpot account, navigate to Marketing > Files and Templates > Files.
  • Locate the file you want to share and click the file name
  • In the right panel, click Copy URL in the File URL by domain section to copy the link to your clipboard. By default, the file URL will start with cdn2.hubspot.net. To use one of your connected domains for the file URL instead, click the dropdown menu and select a domain, then click Copy URL. 
copy-file-url

Most modern browsers will open links to PDF files in a new browser tab or window, as opposed to downloading the file to the visitor's computer. Whether the file opens in the browser or downloads automatically depends on the visitor's web browser and its settings. 

There isn't a way to force the file to download without using server-side script, which isn't supported in the files toolYou may consider packaging your file in a .zip file, which prompts an automatic download on most browsers.

/cos-general/how-do-i-provide-a-direct-download-link-to-a-file-hosted-on-my-file-manager