<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating a download or e-book download in Content Strategy &amp; SEO</title>
    <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/404791#M1132</link>
    <description>&lt;P&gt;The lone change is in the install code, so you could utilize a similar structure&lt;A href="https://getbestjigsaw.com/" target="_blank" rel="noopener"&gt;,&lt;/A&gt; changing just the url for each record&amp;nbsp; in the implant code. Could be valuable to make a shrouded field to particular which digital book was downloaded.&lt;/P&gt;</description>
    <pubDate>Sat, 30 Jan 2021 11:16:49 GMT</pubDate>
    <dc:creator>JJace</dc:creator>
    <dc:date>2021-01-30T11:16:49Z</dc:date>
    <item>
      <title>Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/35430#M27</link>
      <description>&lt;P&gt;I am very familiar with creating landing pages, CTA's, etc.&amp;nbsp; I need help creating a download for product sheets for people to download and e-books that people will download.&amp;nbsp; Ideally I'd like to use the e-book as a carrot to gram contact information and setup a workflow to this with marketing drip campaign.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please advise as how to setup the download bit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 15:41:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/35430#M27</guid>
      <dc:creator>JeffM</dc:creator>
      <dc:date>2017-10-27T15:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/35871#M31</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;I think i have found a solution to your problem -&lt;/P&gt;&lt;P&gt;Follow the below steps -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In your HubSpot &lt;EM&gt;&lt;STRONG&gt;Marketing&lt;/STRONG&gt;&lt;/EM&gt; account, navigate to &lt;STRONG&gt;Content &lt;/STRONG&gt;&amp;gt; &lt;STRONG&gt;File Manager&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Locate the file you uploaded to the File Manager or &lt;STRONG&gt;upload&lt;/STRONG&gt; a new one.&lt;/LI&gt;&lt;LI&gt;Click on the &lt;STRONG&gt;name of your file&lt;/STRONG&gt; to open the right-side pane &amp;gt; click &lt;STRONG&gt;Copy URL&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Next, set the redirect URL on the landing page:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;In your HubSpot&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Marketing&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;account, n&lt;/SPAN&gt;avigate to &lt;STRONG&gt;Content &amp;gt; Landing Pages&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Locate and &lt;STRONG&gt;hover&lt;/STRONG&gt; over your landing page until you see the &lt;EM&gt;Actions&lt;/EM&gt; buttons &amp;gt; click &lt;STRONG&gt;Edit&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Locate your&amp;nbsp;form&amp;nbsp;and &lt;STRONG&gt;click on the form &lt;/STRONG&gt;itself to edit the module.&lt;/LI&gt;&lt;LI&gt;From the form options window, select &lt;STRONG&gt;Redirect to another page&lt;/STRONG&gt; under&amp;nbsp;&lt;EM&gt;What should a visitor&amp;nbsp;see after submitting your form?&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;Redirect to external URL&amp;nbsp;&lt;/STRONG&gt;&amp;gt; Paste in the URL you copied from the File Manager &amp;gt; click &lt;STRONG&gt;OK&lt;/STRONG&gt; and you'll see your URL now in the text box.&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Click &lt;STRONG&gt;Save and go to module list&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt; or &lt;STRONG&gt;Publish&lt;/STRONG&gt; the page.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this Helps!&lt;/P&gt;&lt;P&gt;Ciaran&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 12:23:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/35871#M31</guid>
      <dc:creator>TheGilldog</dc:creator>
      <dc:date>2017-11-01T12:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/206971#M610</link>
      <description>&lt;P&gt;In this solution, the visitor can't be redirected to a thank you page or anywhere else after the&amp;nbsp;asset has been downloaded. Is that correct? If so, how do I achieve that?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:38:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/206971#M610</guid>
      <dc:creator>emanur</dc:creator>
      <dc:date>2018-09-14T13:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/330666#M924</link>
      <description>&lt;P&gt;This is a Javascript solution. In the form settings, redirect to a thank you page or show a Thank you message, then in the embed code insert the code marked in red. Remember to add a colon after&amp;nbsp;formId: "xxx-xxx-xxx".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!--[if lte IE 8]&amp;gt;&lt;BR /&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;![endif]--&amp;gt;&lt;BR /&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;hbspt.forms.create({&lt;BR /&gt;portalId: "xxxxx",&lt;BR /&gt;formId: "xxx-xxx-xxx",&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;onFormSubmit: function($form) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;var a = document.createElement("a");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;a.href = "&lt;A href="http://example.com/file.pdf" target="_blank"&gt;http://example.com/file.pdf&lt;/A&gt;";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;a.download = "file.pdf";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;a.target = "_blank",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;a.click();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;}&lt;/FONT&gt;&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 16:00:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/330666#M924</guid>
      <dc:creator>mayormario</dc:creator>
      <dc:date>2020-04-09T16:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/340927#M947</link>
      <description>&lt;P&gt;So, i would need to create one form for each e-book, right?&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 15:58:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/340927#M947</guid>
      <dc:creator>guidoperaltas</dc:creator>
      <dc:date>2020-05-21T15:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/340942#M948</link>
      <description>&lt;P&gt;The only change is in the embed code, so you could use the same form, changing only the url for each file in the embed code. Could be useful to create a hidden field to distinct which ebook was downloaded.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 16:16:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/340942#M948</guid>
      <dc:creator>mayormario</dc:creator>
      <dc:date>2020-05-21T16:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/343022#M959</link>
      <description>&lt;P&gt;great! it worked!&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 21:00:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/343022#M959</guid>
      <dc:creator>guidoperaltas</dc:creator>
      <dc:date>2020-05-29T21:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/376052#M1049</link>
      <description>&lt;P&gt;,&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 16:21:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/376052#M1049</guid>
      <dc:creator>elzubeir</dc:creator>
      <dc:date>2020-10-02T16:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/401378#M1109</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/126914"&gt;@mayormario&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this on my page with an image file but the image isn't downloading after I submit the form.&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="&lt;A target="_blank" rel="noopener"&gt;https://js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;var data = [];&lt;BR /&gt;hbspt.forms.create({&lt;BR /&gt;portalId: "464503",&lt;BR /&gt;formId: "6d6c2302-d30b-482f-bcd5-18d4b14b44e0",&lt;BR /&gt;onFormSubmit: function($form) {&lt;BR /&gt;var a = document.createElement("a");&lt;BR /&gt;a.href = "&lt;A href="https://f.hubspotusercontent00.net/hubfs/464503/RN-MEMBER-Benefit_Badges-011821_V1.png" target="_blank" rel="noopener"&gt;https://f.hubspotusercontent00.net/hubfs/464503/RN-MEMBER-Benefit_Badges-011821_V1.png&lt;/A&gt;";&lt;BR /&gt;a.download = "RN-MEMBER-Benefit_Badges-011821_V1.png";&lt;BR /&gt;a.target = "_blank",&lt;BR /&gt;a.click();&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 10:48:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/401378#M1109</guid>
      <dc:creator>elanashama</dc:creator>
      <dc:date>2021-01-20T10:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/401413#M1110</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's an error in my code. This line:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a.target = "_blank",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;must be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a.target = "_blank";&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 12:28:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/401413#M1110</guid>
      <dc:creator>mayormario</dc:creator>
      <dc:date>2021-01-20T12:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/404791#M1132</link>
      <description>&lt;P&gt;The lone change is in the install code, so you could utilize a similar structure&lt;A href="https://getbestjigsaw.com/" target="_blank" rel="noopener"&gt;,&lt;/A&gt; changing just the url for each record&amp;nbsp; in the implant code. Could be valuable to make a shrouded field to particular which digital book was downloaded.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 11:16:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/404791#M1132</guid>
      <dc:creator>JJace</dc:creator>
      <dc:date>2021-01-30T11:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/408044#M1147</link>
      <description>&lt;P&gt;While I love a good workaround, it would be great to get Hubspot's attention on this. With the pop-up form, it's so easy to simply have a download link on the thank you page. Why isn't this also possible with a normal form? Not even when using the "template" for eBook/file download. Seems like a development oversight.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 16:42:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/408044#M1147</guid>
      <dc:creator>kastraver</dc:creator>
      <dc:date>2021-02-10T16:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/446912#M1302</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your solution there might be cases where user puts in random email but he will be re-directed to the file page anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the user to put in correct email then only we will send the file to their mail.&lt;/P&gt;&lt;P&gt;I tried to create new form and use follow up tab (this should be the email sent after user clicks download?).&amp;nbsp;&lt;/P&gt;&lt;P&gt;But somehow I don't get any email (the email on follow up tab not sent).&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 07:56:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/446912#M1302</guid>
      <dc:creator>kelvinsoen</dc:creator>
      <dc:date>2021-06-14T07:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/447026#M1304</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Maybe you should create a Workflow to manage this. This workflow will send&lt;BR /&gt;the email with the download link to the user.</description>
      <pubDate>Mon, 14 Jun 2021 12:31:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/447026#M1304</guid>
      <dc:creator>mayormario</dc:creator>
      <dc:date>2021-06-14T12:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/457433#M1338</link>
      <description>&lt;P data-unlink="true"&gt;I have read the overall replies very attentively. the overall ideas are very helpful and valuable. I had also the same question but I have got ideas from here. thanks to all.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 09:41:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/457433#M1338</guid>
      <dc:creator>sbank</dc:creator>
      <dc:date>2021-07-13T09:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/525685#M1430</link>
      <description>&lt;P&gt;Thank you!&lt;BR /&gt;Related question,&amp;nbsp;&lt;SPAN&gt;how can get my file (PDF ebook) hosted on &lt;/SPAN&gt;&lt;A href="https://cdn2.hubspot.net/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://cdn2.hubspot.net&lt;/A&gt;&lt;SPAN&gt; it is showing up on (&lt;/SPAN&gt;&lt;A href="https://fs.hubspotusercontent00.net/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://fs.hubspotusercontent00.net&lt;/A&gt;&lt;SPAN&gt;) and I found that&amp;nbsp;&lt;A href="https://cdn2.hubspot.net/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://cdn2.hubspot.net&lt;/A&gt;&amp;nbsp;has a far better domain health rating?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Craig&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Nov 2021 07:36:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/525685#M1430</guid>
      <dc:creator>CMaxwell</dc:creator>
      <dc:date>2021-11-13T07:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/876378#M2544</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a download form for different documents. The form will need the same fields. I need to know if a form needs to be created for each document? or is there an easy way to do it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 05:53:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/876378#M2544</guid>
      <dc:creator>PKendre</dc:creator>
      <dc:date>2023-11-08T05:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/876758#M2546</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use this solution so that when the user fills in the fields on my form and clicks on submit, they download an eBook, but at the moment with this code it just opens the file in a new tab and doesn't download it.&lt;BR /&gt;However, after some research, I managed to use the following code:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
hbspt.forms.create({
  portalId: "xxxxx",
  formId: "xxx-xxx-xxx",
  onFormSubmit: function($form) {
    downloadFile("http://example.com/file.pdf", "file.pdf");
  }
});

function downloadFile(url, fileName) {
  fetch(url, { method: 'get', mode: 'no-cors', referrerPolicy: 'no-referrer' })
    .then(res =&amp;gt; res.blob())
    .then(res =&amp;gt; {
      const aElement = document.createElement('a');
      aElement.setAttribute('download', fileName);
      const href = URL.createObjectURL(res);
      aElement.href = href;
      aElement.setAttribute('target', '_blank');
      aElement.click();
      URL.revokeObjectURL(href);
    });
}
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I leave it here in the hope that it can also help someone with the same problem.&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 17:27:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/876758#M2546</guid>
      <dc:creator>CSilva2</dc:creator>
      <dc:date>2023-11-08T17:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a download or e-book download</title>
      <link>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/876777#M2547</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if the "download" attribute has been set in the code, depends on the specific browser how to handle this request. Nowadays most of the browsers can open pdf files. Users can configure in their browsers if the pdf files should be downloaded or opened.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 17:25:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/m-p/876777#M2547</guid>
      <dc:creator>mayormario</dc:creator>
      <dc:date>2023-11-08T17:25:21Z</dc:date>
    </item>
  </channel>
</rss>

