<?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: File Naming in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191703#M8417</link>
    <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let dropboxConnector = require('./connectors/dropbox_connector');
// This is my dbx instance with the token.

dropboxConnector.filesUpload({
    contents: "Test",
    path: '/dev/test/test_folder/test name - 1234 - xof - 12/12/2016 - test',
    mute: true,
}).then((res) =&amp;gt; {
    console.log(res);
});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just re-ran this and what ends up happening here is I get a folder structure (indicated by &amp;gt;) like this on dropbox -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dev &amp;gt;&amp;nbsp;test&amp;nbsp;&amp;gt;&amp;nbsp;test_folder&amp;nbsp;&amp;gt;&amp;nbsp;test name - 1234 - xof - 12 &amp;gt; 12 &amp;gt; 2016 - test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with 2016 - test being written as the filename and&amp;nbsp;&lt;SPAN&gt;test name - 1234 - xof - 12 being written as a folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expectation is -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dev &amp;gt; test &amp;gt; test_folder &amp;gt; test name - 1234 - xof -12/12/2016 - test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with "&lt;SPAN&gt;test name - 1234 - xof -12/12/2016 - test" being the file name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 22 Oct 2016 23:06:00 GMT</pubDate>
    <dc:creator>Vivek S.3</dc:creator>
    <dc:date>2016-10-22T23:06:00Z</dc:date>
    <item>
      <title>File Naming</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191624#M8410</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the nodejs SDK and I notice that when using the filesUpload method, file names seem to be get clipped short. For example, I have a file that is uploaded to&amp;nbsp;the path -&amp;nbsp;&lt;/P&gt;&lt;P&gt;/test/some_folder/This Is A&amp;nbsp;Test File&amp;nbsp;- 123456&amp;nbsp;- 09/23/2016 - blah&amp;nbsp;- blah.pdf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I go into the dropbox explorer UI I see -&amp;nbsp;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;test&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;some_folder&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;2016 - &lt;/SPAN&gt;&lt;SPAN&gt;blah&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;- &lt;/SPAN&gt;&lt;SPAN&gt;blah&lt;/SPAN&gt;&lt;SPAN&gt;.pdf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a a way to prevent this name-shortening?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:29:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191624#M8410</guid>
      <dc:creator>Vivek S.3</dc:creator>
      <dc:date>2019-05-29T09:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: File Naming</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191625#M8411</link>
      <description>&lt;P&gt;Okay, I think it's the slashes. I replaced them with hyphens and it seemed to work. The question now is, how do I get forward slashes into the filenames?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2016 05:48:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191625#M8411</guid>
      <dc:creator>Vivek S.3</dc:creator>
      <dc:date>2016-10-22T05:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: File Naming</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191702#M8416</link>
      <description>&lt;P&gt;I can't reproduce the issue.&amp;nbsp;Could you share your code? For reference, here is the code I used that worked successfully. (The file was in the expected location as observed on dropbox.com.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;const Dropbox = require('dropbox');
const dbx = new Dropbox({ accessToken: '&amp;lt;REDACTED&amp;gt;' });
dbx.filesUpload({&lt;BR /&gt;  path: '/test/some_folder/This Is A Test File - 123456 - 09/23/2016 - blah - blah.pdf',&lt;BR /&gt;  contents: "Hello, World!"&lt;BR /&gt;}).then((response) =&amp;gt; {
  console.log(response);
}).catch((error) =&amp;gt; {
  console.log(error);
});&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Oct 2016 22:32:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191702#M8416</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-10-22T22:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: File Naming</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191703#M8417</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let dropboxConnector = require('./connectors/dropbox_connector');
// This is my dbx instance with the token.

dropboxConnector.filesUpload({
    contents: "Test",
    path: '/dev/test/test_folder/test name - 1234 - xof - 12/12/2016 - test',
    mute: true,
}).then((res) =&amp;gt; {
    console.log(res);
});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just re-ran this and what ends up happening here is I get a folder structure (indicated by &amp;gt;) like this on dropbox -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dev &amp;gt;&amp;nbsp;test&amp;nbsp;&amp;gt;&amp;nbsp;test_folder&amp;nbsp;&amp;gt;&amp;nbsp;test name - 1234 - xof - 12 &amp;gt; 12 &amp;gt; 2016 - test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with 2016 - test being written as the filename and&amp;nbsp;&lt;SPAN&gt;test name - 1234 - xof - 12 being written as a folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expectation is -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dev &amp;gt; test &amp;gt; test_folder &amp;gt; test name - 1234 - xof -12/12/2016 - test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with "&lt;SPAN&gt;test name - 1234 - xof -12/12/2016 - test" being the file name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2016 23:06:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191703#M8417</guid>
      <dc:creator>Vivek S.3</dc:creator>
      <dc:date>2016-10-22T23:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: File Naming</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191704#M8418</link>
      <description>&lt;P&gt;Oh, it looks like things are working correctly then.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A forward slash is the path&amp;nbsp;separator, so the path /foo/bar/baz means a file named "baz" in a folder called "bar" within a folder called "foo".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The path you're passing has six slashes, and it seems like you expect four of them to be path separators and two of them to not be. How would Dropbox know which were which?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/help/145" target="_blank"&gt;https://www.dropbox.com/help/145&lt;/A&gt; may help. It goes over some of the restrictions in characters that make up&amp;nbsp;paths in Dropbox.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2016 23:14:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191704#M8418</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-10-22T23:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: File Naming</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191705#M8419</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. That makes sense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2016 23:34:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Naming/m-p/191705#M8419</guid>
      <dc:creator>Vivek S.3</dc:creator>
      <dc:date>2016-10-22T23:34:22Z</dc:date>
    </item>
  </channel>
</rss>

