<?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: I have a CSV file with headers/fields? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204164#M9815</link>
    <description>It appears to me that the dbox module also uses the deprecated API v1. (If this code doesn't need to work past June, that's okay to ignore.)</description>
    <pubDate>Fri, 27 Jan 2017 18:54:52 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2017-01-27T18:54:52Z</dc:date>
    <item>
      <title>I have a CSV file with headers/fields?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/203949#M9787</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;OwnerId,FirstName,LastName,MailingStreet,MailingCity,MailingState,MailingPostalCode,MailingCountry,Phone,RecordTypeId,Email,Campaign,IF_Local_Leader__c&lt;BR /&gt;005A0000001EHjd,jan 16 test for ACTON,kumar,,,,,,,012A0000000K4y8IAC,Test10@gmail.com,701q0000000K2Us,TRUE&lt;BR /&gt;005A0000001EHjd,Jan 16 If local check,Kumat,,,,,,,012A0000000K4y8IAC,testiflocal@gmail.com,701q0000000K2Us,TRUE&lt;BR /&gt;005A0000001EHjd,gowtham,test,,,,,,,012A0000000K4y8IAC,testacton123@gmail.com,701q0000000K2Us,TRUE&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I have a CSV file with headers/fields as like above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when i preview/open the file in the dropbox it is coming in different format?&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;{"type":"Buffer","data":[79,119,110,101,114,73,100,44,70,105,114,115,116,78,97,109,101,44,76,97,115,116,78,97,109,101,44,77,97,105,108,105,110,103,83,116,114,101,101,116,44,77,97,105,108,105,110,103,67,105,116,121,44,77,97,105,108,105,110,103]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;scenario is like this?&lt;/P&gt;&lt;P&gt;1. I used dropbox API to connect from Nodejs.&lt;/P&gt;&lt;P&gt;2. successfully connected.&lt;/P&gt;&lt;P&gt;3. stored a file in Apps folder.&lt;/P&gt;&lt;P&gt;4. created a folder there.&lt;/P&gt;&lt;P&gt;5. drop some files(csv files) in that.&lt;/P&gt;&lt;P&gt;6. but when i try to open the csv files the format is completely changed ..&lt;/P&gt;&lt;P&gt;it is giving like&lt;/P&gt;&lt;P&gt;types: buffer&lt;/P&gt;&lt;P&gt;data: [,,,,,,]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please hlep on this.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:26:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/203949#M9787</guid>
      <dc:creator>Saikiran</dc:creator>
      <dc:date>2019-05-29T09:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: I have a CSV file with headers/fields?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204024#M9794</link>
      <description>I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:&lt;BR /&gt;&lt;BR /&gt;    - the name and version of the SDK/library you are using, if any&lt;BR /&gt;    - the relevant code snippet(s)</description>
      <pubDate>Thu, 26 Jan 2017 18:56:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204024#M9794</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-01-26T18:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: I have a CSV file with headers/fields?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204088#M9801</link>
      <description>&lt;P&gt;Thanks .&lt;/P&gt;
&lt;P&gt;My sdk version 1.3.14&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code is given below, here am reading my local csv file and passing that value to the dropbox.&lt;/P&gt;
&lt;P&gt;i.e, upload a csv file to dropbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var node_dropbox = require('node-dropbox');&lt;BR /&gt;var fs = require('fs');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var api = node_dropbox.api('&amp;lt;REDACTED&amp;gt;'); //my access token&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;var f = '/Users/saikiran/Downloads/ifg_localleader_contacts.csv'; // my local csv file&lt;BR /&gt;fs.readFile(f, function (err, data) {&lt;BR /&gt;if (err) { throw err; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;api.createFile('12.csv',data, function(err, res) {&lt;BR /&gt;console.log(err);&lt;BR /&gt;});&lt;BR /&gt;});&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 06:02:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204088#M9801</guid>
      <dc:creator>Saikiran</dc:creator>
      <dc:date>2017-01-27T06:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: I have a CSV file with headers/fields?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204090#M9802</link>
      <description>&lt;P&gt;I've redacted the access token in your&amp;nbsp;previous post, but since it was visible for some time, you should really disable that access token to make sure no one else can access your account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe the bug is in the node-dropbox library, which is written by a third-party. This line seems suspect:&amp;nbsp;&lt;A href="https://github.com/g33kidd/node-dropbox/blob/master/lib/node_dropbox.js#L96" target="_blank"&gt;https://github.com/g33kidd/node-dropbox/blob/master/lib/node_dropbox.js#L96&lt;/A&gt;. I believe setting json to true means that the requests library attempts to JSON-serialize your Buffer.&amp;nbsp;I would recommend setting that to false instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note also that this library&amp;nbsp;appears to still use&amp;nbsp;API v1, which has been deprecated and is due to be fully turned off in June:&amp;nbsp;&lt;A href="https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/" target="_blank"&gt;https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/&lt;/A&gt;. You might prefer to use the official Dropbox JavaScript SDK, which uses API v2:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-js" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 06:09:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204090#M9802</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2017-01-27T06:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: I have a CSV file with headers/fields?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204092#M9803</link>
      <description>Actually, I made an assumption about the library you're using... but I see that you said you were using version 1.3.14, but the library I mentioned has a current version of 0.1.8.&lt;BR /&gt;&lt;BR /&gt;Could it be that you're using a different library?</description>
      <pubDate>Fri, 27 Jan 2017 06:23:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204092#M9803</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2017-01-27T06:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: I have a CSV file with headers/fields?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204093#M9804</link>
      <description>&lt;P&gt;Thanks Steve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is resolved with using dbox module in node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 06:38:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204093#M9804</guid>
      <dc:creator>Saikiran</dc:creator>
      <dc:date>2017-01-27T06:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: I have a CSV file with headers/fields?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204164#M9815</link>
      <description>It appears to me that the dbox module also uses the deprecated API v1. (If this code doesn't need to work past June, that's okay to ignore.)</description>
      <pubDate>Fri, 27 Jan 2017 18:54:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-have-a-CSV-file-with-headers-fields/m-p/204164#M9815</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2017-01-27T18:54:52Z</dc:date>
    </item>
  </channel>
</rss>

