<?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: files/download can't handle files with embedded spaces in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-download-can-t-handle-files-with-embedded-spaces/m-p/203737#M9761</link>
    <description>&lt;P&gt;Are you sure that's the right path? Spaces shouldn't be an issue, and this works fine for me:&lt;/P&gt;
&lt;PRE&gt;$ curl -X POST https://content.dropboxapi.com/2/files/upload \
&amp;gt;     --header "Authorization: Bearer &amp;lt;redacted&amp;gt;" \
&amp;gt;     --header "Dropbox-API-Arg: {\"path\": \"/DoNotDeleteFunctionalTest/TEST SPACES.txt\"}" \
&amp;gt;     --header "Content-Type: application/octet-stream" \
&amp;gt;     --data "some data here"

{"name": "TEST SPACES.txt", "path_lower": "/donotdeletefunctionaltest/test spaces.txt", "path_display": "/DoNotDeleteFunctionalTest/TEST SPACES.txt", "id": "id:25N5ksooX-sAAAAAAAKNTQ", "client_modified": "2017-01-24T23:15:48Z", "server_modified": "2017-01-24T23:15:49Z", "rev": "6e1bb021eccc7", "size": 14, "content_hash": "16458e974c3451720370bd39a3b62451470dd77666d44b550138dec8583ee4ea"}

$ curl -X POST https://content.dropboxapi.com/2/files/download \
&amp;gt;     --header 'Authorization: Bearer &amp;lt;redacted&amp;gt;' \
&amp;gt;     --header 'Dropbox-API-Arg: {"path":"/DoNotDeleteFunctionalTest/TEST SPACES.txt"}'
some data here&lt;/PRE&gt;
&lt;P&gt;You can use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;/continue&lt;/A&gt;] to list the contents of the folder, in order to make sure you get the right path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you mentioned it has three spaces in the name, but the path in the code you shared only has one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, I redacted the access token from your post, but you should &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" target="_self"&gt;revoke&lt;/A&gt;&amp;nbsp;it since you posted it publicly.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2017 23:20:10 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-01-24T23:20:10Z</dc:date>
    <item>
      <title>files/download can't handle files with embedded spaces</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-download-can-t-handle-files-with-embedded-spaces/m-p/203728#M9759</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have a file that has three spaces in the name.&amp;nbsp; When I try to use the API to download it I get a 409.&amp;nbsp; I have tried encoding the spaces as %20 + and even \u0020 and it always fails with a 409.&amp;nbsp; Please advise.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/download \ --header 'Authorization: Bearer &amp;lt;redacted&amp;gt;' \ --header 'Dropbox-API-Arg: {"path":"/DoNotDeleteFunctionalTest/TEST SPACES.txt"}' 
&amp;nbsp;
Result:
{
"error_summary": "path/not_found/...",
"error": {
".tag": "path",
"path": {
".tag": "not_found"
}
}
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:26:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-download-can-t-handle-files-with-embedded-spaces/m-p/203728#M9759</guid>
      <dc:creator>bmcdonald</dc:creator>
      <dc:date>2019-05-29T09:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: files/download can't handle files with embedded spaces</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-download-can-t-handle-files-with-embedded-spaces/m-p/203737#M9761</link>
      <description>&lt;P&gt;Are you sure that's the right path? Spaces shouldn't be an issue, and this works fine for me:&lt;/P&gt;
&lt;PRE&gt;$ curl -X POST https://content.dropboxapi.com/2/files/upload \
&amp;gt;     --header "Authorization: Bearer &amp;lt;redacted&amp;gt;" \
&amp;gt;     --header "Dropbox-API-Arg: {\"path\": \"/DoNotDeleteFunctionalTest/TEST SPACES.txt\"}" \
&amp;gt;     --header "Content-Type: application/octet-stream" \
&amp;gt;     --data "some data here"

{"name": "TEST SPACES.txt", "path_lower": "/donotdeletefunctionaltest/test spaces.txt", "path_display": "/DoNotDeleteFunctionalTest/TEST SPACES.txt", "id": "id:25N5ksooX-sAAAAAAAKNTQ", "client_modified": "2017-01-24T23:15:48Z", "server_modified": "2017-01-24T23:15:49Z", "rev": "6e1bb021eccc7", "size": 14, "content_hash": "16458e974c3451720370bd39a3b62451470dd77666d44b550138dec8583ee4ea"}

$ curl -X POST https://content.dropboxapi.com/2/files/download \
&amp;gt;     --header 'Authorization: Bearer &amp;lt;redacted&amp;gt;' \
&amp;gt;     --header 'Dropbox-API-Arg: {"path":"/DoNotDeleteFunctionalTest/TEST SPACES.txt"}'
some data here&lt;/PRE&gt;
&lt;P&gt;You can use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;/continue&lt;/A&gt;] to list the contents of the folder, in order to make sure you get the right path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you mentioned it has three spaces in the name, but the path in the code you shared only has one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, I redacted the access token from your post, but you should &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" target="_self"&gt;revoke&lt;/A&gt;&amp;nbsp;it since you posted it publicly.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 23:20:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-download-can-t-handle-files-with-embedded-spaces/m-p/203737#M9761</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-01-24T23:20:10Z</dc:date>
    </item>
  </channel>
</rss>

