<?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: malformed_path error in Swift in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/malformed-path-error-in-Swift/m-p/633999#M29252</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1554085"&gt;@petepete717&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You are passing filename instead of path to that file! &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;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 18:43:53 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2022-11-03T18:43:53Z</dc:date>
    <item>
      <title>malformed_path error in Swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/malformed-path-error-in-Swift/m-p/633950#M29251</link>
      <description>&lt;P&gt;I am attempting to upload a file in Swift. The issue I have is that when I name the file with a string that I define myself, it works.&lt;/P&gt;
&lt;P&gt;But when I extract the file from the URL the upload does not work. Here is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let filename = "testfile.pdf"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// example that does not work:&lt;/P&gt;
&lt;P&gt;// url is .../something/testfile.pdf&lt;/P&gt;
&lt;P&gt;// let filename = url.lastpathcomponent&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; client = &lt;/SPAN&gt;DropboxClientsManager&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;authorizedClient&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;client.&lt;SPAN&gt;files&lt;/SPAN&gt;.&lt;SPAN&gt;upload&lt;/SPAN&gt;(&lt;SPAN&gt;path&lt;/SPAN&gt;: filename,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;mode&lt;/SPAN&gt;: .&lt;SPAN&gt;overwrite&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;autorename&lt;/SPAN&gt;: &lt;SPAN&gt;false&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;clientModified&lt;/SPAN&gt;: &lt;SPAN&gt;nil&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;mute&lt;/SPAN&gt;: &lt;SPAN&gt;true&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;input&lt;/SPAN&gt;: pdf&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message:&lt;/P&gt;
&lt;P&gt;API route error - {&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;".tag" = path;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;reason = &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;{&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;".tag" = "&lt;STRONG&gt;malformed_path&lt;/STRONG&gt;";&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;};&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"upload_session_id" = "pid_upload_session:...";&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems as if the string value I receive in&amp;nbsp;url.lastpathcomponent is not a format that can be read by SwiftyDropbox. But the strings seem identical. What do I need to change?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 16:26:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/malformed-path-error-in-Swift/m-p/633950#M29251</guid>
      <dc:creator>petepete717</dc:creator>
      <dc:date>2022-11-03T16:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: malformed_path error in Swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/malformed-path-error-in-Swift/m-p/633999#M29252</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1554085"&gt;@petepete717&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You are passing filename instead of path to that file! &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;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 18:43:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/malformed-path-error-in-Swift/m-p/633999#M29252</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-03T18:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: malformed_path error in Swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/malformed-path-error-in-Swift/m-p/634002#M29254</link>
      <description>&lt;P&gt;You can find information on the required path format here: &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#path-formats" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#path-formats&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see you included a general description of how this is set up in the comments in your code, but if you need help debugging this, please share some actual code for reproducing this issue so we can investigate. Also, please print out and share the actual value of "filename" when this occurs for you.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 18:46:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/malformed-path-error-in-Swift/m-p/634002#M29254</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-11-03T18:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: malformed_path error in Swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/malformed-path-error-in-Swift/m-p/634210#M29263</link>
      <description>&lt;P&gt;Thanks very much for pointing me in the right direction!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 13:21:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/malformed-path-error-in-Swift/m-p/634210#M29263</guid>
      <dc:creator>petepete717</dc:creator>
      <dc:date>2022-11-04T13:21:59Z</dc:date>
    </item>
  </channel>
</rss>

