<?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: Upload text from Javascript in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-text-from-Javascript/m-p/348468#M20029</link>
    <description>&lt;P&gt;To upload a file to&amp;nbsp;Dropbox using &lt;A href="https://github.com/dropbox/dropbox-sdk-js" target="_self"&gt;the&amp;nbsp;Dropbox JavaScript SDK&lt;/A&gt; (regardless of whether or not you happened to save it as a file locally), you should use &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload__anchor" target="_self"&gt;the&amp;nbsp;filesUpload method&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;There's an example of doing so &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/upload/index.html#L54" target="_self"&gt;here for browser JavaScript&lt;/A&gt;, and &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/node/upload.js#L23" target="_self"&gt;here for Node&lt;/A&gt;. Those upload from local files, but you can also upload directly from objects in memory.&lt;/P&gt;
&lt;P&gt;(As &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/upload/index.html#L63" target="_self"&gt;noted here&lt;/A&gt;, for large files you need to use "upload sessions", but it sounds like the files you're uploading probably aren't that large.)&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2019 14:58:24 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-06-06T14:58:24Z</dc:date>
    <item>
      <title>Upload text from Javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-text-from-Javascript/m-p/348327#M20023</link>
      <description>&lt;P&gt;I have a question where I couldn't find an example.&lt;/P&gt;&lt;P&gt;In my Javascript app I'm creating arbitrary JSON-snippets, which are NOT saved as file(s).&lt;/P&gt;&lt;P&gt;How can I upload those snippets to Dropbox?&lt;/P&gt;&lt;P&gt;Do I need to use `&lt;SPAN&gt;filesAlphaUpload`? And if yes - is there a snippet to show how to use it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or do I need to create a buffer from the JSON and upload the buffer?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any hint appreciated...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 21:41:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-text-from-Javascript/m-p/348327#M20023</guid>
      <dc:creator>Andy F.5</dc:creator>
      <dc:date>2019-06-05T21:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Upload text from Javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-text-from-Javascript/m-p/348468#M20029</link>
      <description>&lt;P&gt;To upload a file to&amp;nbsp;Dropbox using &lt;A href="https://github.com/dropbox/dropbox-sdk-js" target="_self"&gt;the&amp;nbsp;Dropbox JavaScript SDK&lt;/A&gt; (regardless of whether or not you happened to save it as a file locally), you should use &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload__anchor" target="_self"&gt;the&amp;nbsp;filesUpload method&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;There's an example of doing so &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/upload/index.html#L54" target="_self"&gt;here for browser JavaScript&lt;/A&gt;, and &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/node/upload.js#L23" target="_self"&gt;here for Node&lt;/A&gt;. Those upload from local files, but you can also upload directly from objects in memory.&lt;/P&gt;
&lt;P&gt;(As &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/upload/index.html#L63" target="_self"&gt;noted here&lt;/A&gt;, for large files you need to use "upload sessions", but it sounds like the files you're uploading probably aren't that large.)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 14:58:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-text-from-Javascript/m-p/348468#M20029</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-06-06T14:58:24Z</dc:date>
    </item>
  </channel>
</rss>

