<?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: Error 404 retrieve Form uploaded file in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925597#M71199</link>
    <description>&lt;P&gt;Maybe.&amp;nbsp; Also not sure if you need to urlencode.&amp;nbsp; I have not used this endpoint so can't give any examples or help much further.&amp;nbsp; Maybe some else will chime in..&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 13:39:32 GMT</pubDate>
    <dc:creator>dsmarion</dc:creator>
    <dc:date>2024-02-20T13:39:32Z</dc:date>
    <item>
      <title>Error 404 retrieve Form uploaded file</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925086#M71171</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a form with a form field and I'm using api to retrieve submissions of that form.&lt;/P&gt;&lt;P&gt;When I try to use the url given by the submission to download the file using API token it returns a 404 error, but when I open the url in a browser (while being authenticated) it correctly shows the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put in scopes for the app :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;forms&lt;/LI&gt;&lt;LI&gt;forms-uploaded-files&lt;/LI&gt;&lt;LI&gt;files.ui_hidden.read&lt;/LI&gt;&lt;LI&gt;files&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I expect ony the two first scopes should be necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something ?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 17:10:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925086#M71171</guid>
      <dc:creator>AMoulin</dc:creator>
      <dc:date>2024-02-19T17:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error 404 retrieve Form uploaded file</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925304#M71181</link>
      <description>&lt;P&gt;This may be because of token has no sufficient permissions to access files uploaded via forms&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 00:28:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925304#M71181</guid>
      <dc:creator>Humashankar</dc:creator>
      <dc:date>2024-02-20T00:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error 404 retrieve Form uploaded file</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925453#M71190</link>
      <description>&lt;P&gt;where theses permissions are configured ? I mean I'm confused, it's an app, it should have access to all by default, restriced by the scopes at most.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 10:35:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925453#M71190</guid>
      <dc:creator>AMoulin</dc:creator>
      <dc:date>2024-02-20T10:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error 404 retrieve Form uploaded file</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925556#M71193</link>
      <description>&lt;P&gt;Hmmm... 404 means not found, it's not a permissions issue.&amp;nbsp; That would be 401 or 403.&amp;nbsp; Can you show more info about your api call?&amp;nbsp; I am guessing something else is the culprit.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 12:55:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925556#M71193</guid>
      <dc:creator>dsmarion</dc:creator>
      <dc:date>2024-02-20T12:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error 404 retrieve Form uploaded file</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925592#M71197</link>
      <description>&lt;P&gt;basically it's that :&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;        $headers = [
            'Authorization' =&amp;gt; "Bearer {$this-&amp;gt;accessToken}",
            'Content-Type' =&amp;gt; 'application/json',
        ];
        $response = (new ExternalResourceClient())-&amp;gt;request('GET', $url, null, $headers);&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;the URL is exactly the one recieved while retrieving the submission from the api calls, it looks like that :&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;https://api-na1.hubspot.com/form-integrations/v1/uploaded-files/signed-url-redirect/XXXXX?portalId=XXXX&amp;amp;sign=XXX&amp;amp;conversionId=XXX&amp;amp;filename=XXX.pdf&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;the same code works to retrieve submissions&lt;/P&gt;&lt;P&gt;the same url works on browser to get the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm thinking i did not try without the content-type, might cause some issues&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 13:28:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925592#M71197</guid>
      <dc:creator>AMoulin</dc:creator>
      <dc:date>2024-02-20T13:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error 404 retrieve Form uploaded file</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925597#M71199</link>
      <description>&lt;P&gt;Maybe.&amp;nbsp; Also not sure if you need to urlencode.&amp;nbsp; I have not used this endpoint so can't give any examples or help much further.&amp;nbsp; Maybe some else will chime in..&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 13:39:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925597#M71199</guid>
      <dc:creator>dsmarion</dc:creator>
      <dc:date>2024-02-20T13:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error 404 retrieve Form uploaded file</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925708#M71206</link>
      <description>&lt;P&gt;tried without the content-type, did not change anything&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 16:24:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/925708#M71206</guid>
      <dc:creator>AMoulin</dc:creator>
      <dc:date>2024-02-20T16:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error 404 retrieve Form uploaded file</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/936085#M71561</link>
      <description>&lt;P&gt;We found that the issue came from the request client class used in our framework. This class is trying to follow itself the redirections to make the requests using final IP address instead of domain name, and it seems that at some point it looses some requested data.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 15:31:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-404-retrieve-Form-uploaded-file/m-p/936085#M71561</guid>
      <dc:creator>AMoulin</dc:creator>
      <dc:date>2024-03-01T15:31:39Z</dc:date>
    </item>
  </channel>
</rss>

