<?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: How to let non-Dropboxer upload file or look at file from a particular 'Directory' using Ruby on Rails?  in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-let-non-Dropboxer-upload-file-or-look-at-file-from-a/m-p/89873#M2764</link>
    <description>&lt;P&gt;This certainly sounds possible. The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security reasons. However, most of these security concerns are allayed for web apps where you can keep the access token server-side.&lt;/P&gt;

&lt;P&gt;So if you did want to go this route, instead of kicking off the authorization flow, you would manually use an existing access token for your app. (Just be careful not to revoke it, e.g. via &lt;A href="https://www.dropbox.com/account/security" rel="nofollow noreferrer"&gt;https://www.dropbox.com/account/security&lt;/A&gt; .)&lt;/P&gt;

&lt;P&gt;You can upload files using the Dropbox API via your web app, e.g., using the &lt;CODE&gt;get_file&lt;/CODE&gt; method in the official Ruby SDK:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-ruby/api-docs/v1.6.4/DropboxClient.html#method-i-get_file" rel="nofollow noreferrer"&gt;https://dropbox.github.io/dropbox-sdk-ruby/api-docs/v1.6.4/DropboxClient.html#method-i-get_file&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can upload files using using the &lt;CODE&gt;put_file&lt;/CODE&gt; method:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-ruby/api-docs/v1.6.4/DropboxClient.html#method-i-put_file" rel="nofollow noreferrer"&gt;https://dropbox.github.io/dropbox-sdk-ruby/api-docs/v1.6.4/DropboxClient.html#method-i-put_file&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can even upload files to subfolders that don't exist yet and the subfolders will be created automatically.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2015 22:47:39 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2015-03-20T22:47:39Z</dc:date>
    <item>
      <title>How to let non-Dropboxer upload file or look at file from a particular 'Directory' using Ruby on Rails?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-let-non-Dropboxer-upload-file-or-look-at-file-from-a/m-p/89872#M2763</link>
      <description>&lt;P&gt;Hi, Currently I'm building a web apps that can let non-Dropboxer upload file or look at a file from a particular 'Directory'?&lt;/P&gt;

&lt;P&gt;example:&lt;BR /&gt;
+ My account has directory called 'ParticularDirectory'&lt;BR /&gt;
+ Non-Dropboxer-1 upload 'file-1.txt' to 'ParticularDirectory'&lt;BR /&gt;
+ Non-Dropboxer-2 upload 'file-2.odt' to 'ParticularDirectory'&lt;BR /&gt;
+ Non-Dropboxer-3 look or download 'file-1.txt' &amp;amp; 'file-2.odt' from 'ParticularDirectory'&lt;/P&gt;

&lt;P&gt;*Additional Question&lt;BR /&gt;
=&amp;gt; Can Non-Dropboxer-4 upload file to 'ParticularDirectory/subDirectory1/file-3.jpg' when there is no 'subDirectory1' inside 'ParticularDirectory'?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
John&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:44:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-let-non-Dropboxer-upload-file-or-look-at-file-from-a/m-p/89872#M2763</guid>
      <dc:creator>John E.5</dc:creator>
      <dc:date>2019-05-29T09:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to let non-Dropboxer upload file or look at file from a particular 'Directory' using Ruby on Rails?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-let-non-Dropboxer-upload-file-or-look-at-file-from-a/m-p/89873#M2764</link>
      <description>&lt;P&gt;This certainly sounds possible. The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security reasons. However, most of these security concerns are allayed for web apps where you can keep the access token server-side.&lt;/P&gt;

&lt;P&gt;So if you did want to go this route, instead of kicking off the authorization flow, you would manually use an existing access token for your app. (Just be careful not to revoke it, e.g. via &lt;A href="https://www.dropbox.com/account/security" rel="nofollow noreferrer"&gt;https://www.dropbox.com/account/security&lt;/A&gt; .)&lt;/P&gt;

&lt;P&gt;You can upload files using the Dropbox API via your web app, e.g., using the &lt;CODE&gt;get_file&lt;/CODE&gt; method in the official Ruby SDK:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-ruby/api-docs/v1.6.4/DropboxClient.html#method-i-get_file" rel="nofollow noreferrer"&gt;https://dropbox.github.io/dropbox-sdk-ruby/api-docs/v1.6.4/DropboxClient.html#method-i-get_file&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can upload files using using the &lt;CODE&gt;put_file&lt;/CODE&gt; method:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-ruby/api-docs/v1.6.4/DropboxClient.html#method-i-put_file" rel="nofollow noreferrer"&gt;https://dropbox.github.io/dropbox-sdk-ruby/api-docs/v1.6.4/DropboxClient.html#method-i-put_file&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can even upload files to subfolders that don't exist yet and the subfolders will be created automatically.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2015 22:47:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-let-non-Dropboxer-upload-file-or-look-at-file-from-a/m-p/89873#M2764</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-03-20T22:47:39Z</dc:date>
    </item>
  </channel>
</rss>

