<?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: 'View on dropbox' PDF embed returning Error 400 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743959#M32762</link>
    <description>&lt;P&gt;I notice that share links include &amp;amp;dl=0 in them, so the embedder documentation should include this tidbit about removing it.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;the &amp;amp;amp is generated by webflow so I cant control that, as the link with '&amp;amp;' is added via CMS entry.&lt;BR /&gt;&lt;BR /&gt;Thanks for clarifying about the app !&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2024 19:39:11 GMT</pubDate>
    <dc:creator>jonokivex</dc:creator>
    <dc:date>2024-01-16T19:39:11Z</dc:date>
    <item>
      <title>'View on dropbox' PDF embed returning Error 400</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743395#M32753</link>
      <description>&lt;P&gt;Greetings,&lt;BR /&gt;&lt;BR /&gt;Visit:&amp;nbsp;&lt;A href="https://www.arclab.space/f/dropbox-pdf-test" target="_blank" rel="noopener"&gt;https://www.arclab.space/f/dropbox-pdf-test&lt;/A&gt;&amp;nbsp;(password is password)&lt;BR /&gt;The PDF displays fine, but the 'view on dropbox' link returns error 400. This happens with all links, site-wide.&lt;BR /&gt;The actual share link used in the embed works fine if pasted into the address bar directly.&lt;BR /&gt;&lt;BR /&gt;Is this an API glitch?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your time!&lt;BR /&gt;&lt;BR /&gt;Jonathan.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 03:19:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743395#M32753</guid>
      <dc:creator>jonokivex</dc:creator>
      <dc:date>2024-01-15T03:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: 'View on dropbox' PDF embed returning Error 400</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743480#M32755</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1697482"&gt;@jonokivex&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It's an easy workaround - just drop the last link parameter - "&amp;amp;dl=0". &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; That's where your issue is coming from. Just put in your page something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Dropbox.embed({link: "https://www.dropbox.com/scl/fi/uhd2iaccfc7szs9oa1tny/AL01-0301_77A-BELL-ROAD_EXISTING-SITE-PLAN-A_REV-A.pdf?rlkey=5eyu4p6ysx8zksely5tum6q3z"}, document.getElementById('dropbox-embed-container'));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way your application is not yet passed production approval despite there are too many "developers" already. Good luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: When you put something in your website, use url-encoding only when needed, not everywhere!!! In particular encoding the ampersand makes your link invalid when opened later. URL-encode is usable when nesting one link in another, for instance - which is not the case now - you're passing the link as parameter (Embedder takes care for encoding whenever needed).&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 14:00:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743480#M32755</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-01-15T14:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: 'View on dropbox' PDF embed returning Error 400</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743661#M32756</link>
      <description>&lt;P&gt;Great stuff&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;! Thank you. Worked a charm.&lt;BR /&gt;&lt;BR /&gt;But, I didn't understand the second half of your message. Can you clarify?&lt;BR /&gt;What do you mean the application hasnt passed production approval?&lt;BR /&gt;&lt;BR /&gt;And regarding URL encoding, are you saying that instead of &amp;amp;raw=1 or &amp;amp;dl=1 etc, it should be:&lt;BR /&gt;&lt;SPAN&gt;%26raw=1 ,&amp;nbsp;%26dl=1&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 22:28:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743661#M32756</guid>
      <dc:creator>jonokivex</dc:creator>
      <dc:date>2024-01-15T22:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: 'View on dropbox' PDF embed returning Error 400</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743668#M32757</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1697482"&gt;@jonokivex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;But, I didn't understand the second half of your message. Can you clarify?&lt;BR /&gt;What do you mean the application hasnt passed production approval?&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I mean exactly what I said. If some application is gonna be released for many user (i.e. public use) your application needs &lt;A title="Production approval" href="https://www.dropbox.com/developers/reference/developer-guide#production-approval" target="_blank" rel="noopener"&gt;production approval&lt;/A&gt;. If not passed, your application use will be limited - in fact it's already limited. In spite, you can continue use it for Embedder. So, if you don't have mobile, desktop standalone application, or something else that require user approval - no problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1697482"&gt;@jonokivex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;And regarding URL encoding, are you saying that instead of &amp;amp;raw=1 or &amp;amp;dl=1 etc, it should be:&lt;BR /&gt;&lt;SPAN&gt;%26raw=1 ,&amp;nbsp;%26dl=1 &lt;/SPAN&gt;?&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Oh..🤦 I messed the words. I mean HTML escaping not URL encoding. Hm..&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Regarding this question, you may have make your link symbols escaped unintentionally. The note of me is in just opposite direction! You must NOT change anything, but you have did it!!! Just a fragment of you page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var options = {
  // Shared link to Dropbox file
  link: "https://www.dropbox.com/scl/fi/uhd2iaccfc7szs9oa1tny/AL01-0301_77A-BELL-ROAD_EXISTING-SITE-PLAN-A_REV-A.pdf?rlkey=5eyu4p6ysx8zksely5tum6q3z&amp;amp;amp;dl=0",
  file: {
    // Sets the zoom mode for embedded files. Defaults to 'best'.
    zoom: "best" // or "fit"
  },
  folder: {
    // Sets the view mode for embedded folders. Defaults to 'list'.
    view: "grid", // or "list"
    headerSize: "normal" // or "small"
  }
}
Dropbox.embed(options, document.getElementById('dropbox-embed-container'));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's doing "&amp;amp;amp;" there? 🧐 Note, again, you are passing parameter in Javascript, not link in HTML! It's slightly different (in HTML escaping is used, but not in Javascript). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Correct that what makes this mess.&lt;/P&gt;&lt;P&gt;Hope it's a bit more clear now.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 23:27:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743668#M32757</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-01-15T23:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: 'View on dropbox' PDF embed returning Error 400</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743959#M32762</link>
      <description>&lt;P&gt;I notice that share links include &amp;amp;dl=0 in them, so the embedder documentation should include this tidbit about removing it.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;the &amp;amp;amp is generated by webflow so I cant control that, as the link with '&amp;amp;' is added via CMS entry.&lt;BR /&gt;&lt;BR /&gt;Thanks for clarifying about the app !&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 19:39:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743959#M32762</guid>
      <dc:creator>jonokivex</dc:creator>
      <dc:date>2024-01-16T19:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: 'View on dropbox' PDF embed returning Error 400</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743965#M32763</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1697482"&gt;@jonokivex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I notice that share links include &amp;amp;dl=0 in them, so the embedder documentation should include this tidbit about removing it.&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It's not there since removing is not something mandatory. In general it's not need to be removed. I proposed it as a workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1697482"&gt;@jonokivex&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;the &amp;amp;amp is generated by webflow so I cant control that, as the link with '&amp;amp;' is added via CMS entry.&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hm.. It sounds like a bug... if there is not an option controlling that. 🤷 Inform the provider of your system.&lt;/P&gt;&lt;P&gt;When you click "View on Dropbox", it opens whatever passed there as is (if passed &amp;amp;amp, including it).&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: As a workaround on this escaped string (as provided by your CMS), you can use string as following template:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"https://www.dropbox.com/scl/fi/uhd2iaccfc7szs9oa1tny/AL01-0301_77A-BELL-ROAD_EXISTING-SITE-PLAN-A_REV-A.pdf?rlkey=5eyu4p6ysx8zksely5tum6q3z&amp;amp;amp;dl=0".replaceAll('&amp;amp;amp;','&amp;amp;')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 20:46:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/View-on-dropbox-PDF-embed-returning-Error-400/m-p/743965#M32763</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-01-16T20:46:08Z</dc:date>
    </item>
  </channel>
</rss>

