<?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: Integrating Dropbox API into file sharing application in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/748586#M32889</link>
    <description>&lt;P&gt;@&lt;SPAN&gt;Здравко, thanks a lot, man! The temporary link thing worked almost perfectly except for one detail: I am not able to upload large files (600MB, for example).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I make the POST request to the generated temporary link to upload small files, everything works fine, but for larger files it does not. It goes all the way with the upload, but in the end it fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I looked into the upload session stuff, but I face the exposed token problem again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you know any workaroud for this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 21:29:16 GMT</pubDate>
    <dc:creator>diegostefano</dc:creator>
    <dc:date>2024-02-01T21:29:16Z</dc:date>
    <item>
      <title>Integrating Dropbox API into file sharing application</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/748340#M32871</link>
      <description>&lt;P&gt;Hi, people!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently working on a chat app that relies on the sharing of heavy files. So I decided to try to use the Dropbox API to deal with the file management.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scenario is: every user should be able to send attached files from their computers in messages, but they are actually sending the files to my Dropbox account and the message only contains a public link to the file inside my Dropbox app folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created the app in the Dropbox developer pages, setted everything up and even got everything working as expected using those manually generated access tokens (that expires after some time).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But since the users should be able to upload their local files straight to Dropbox (without uploading anything to my server), I'm using the Javascript SDK to handle this and the tokens end up being exposed in the source code of the web app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: given that the users also shouldn't have to authenticate to thei Dropbox account, is there a safe way, an authorization flow, to accomplish the described above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 23:54:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/748340#M32871</guid>
      <dc:creator>diegostefano</dc:creator>
      <dc:date>2024-01-31T23:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Dropbox API into file sharing application</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/748349#M32872</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1799679"&gt;@diegostefano&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In the described situation you have 2 possible scenarios. Usage of temporary upload link or make you server behave like a proxy.&lt;/P&gt;&lt;P&gt;You can use &lt;A title="Get a one-time use temporary upload link to upload a file to a Dropbox location" href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_upload_link" target="_blank" rel="noopener"&gt;/2/files/get_temporary_upload_link&lt;/A&gt; to generate upload link (server side) on demand and use the same link client side to make the actual upload. This way is lighter since nothing more than the link generation is performed server side and most of the traffic is between client side and Dropbox server. Drawback is the nature of the link - once it stops cannot be used to continue broken connection for instance. Such a way is usable for stable client side connection if you can rely on.&lt;/P&gt;&lt;P&gt;Other way is upload the file to your server at once or in pieces (without saving them locally) where the data are forwarded directly to Dropbox using upload session. There are different possible configuration of such session. Select what best matches your use case. In such a situation you have better control on the upload process and can control it at any one moment and step, but your server load becomes higher.&lt;/P&gt;&lt;P&gt;In both cases no any authentication information unrelated to particular user is exposed to client side. All authentications of the account are performed server side. Choose what better suits your needs.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 00:26:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/748349#M32872</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-02-01T00:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Dropbox API into file sharing application</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/748586#M32889</link>
      <description>&lt;P&gt;@&lt;SPAN&gt;Здравко, thanks a lot, man! The temporary link thing worked almost perfectly except for one detail: I am not able to upload large files (600MB, for example).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I make the POST request to the generated temporary link to upload small files, everything works fine, but for larger files it does not. It goes all the way with the upload, but in the end it fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I looked into the upload session stuff, but I face the exposed token problem again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you know any workaroud for this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 21:29:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/748586#M32889</guid>
      <dc:creator>diegostefano</dc:creator>
      <dc:date>2024-02-01T21:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Dropbox API into file sharing application</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/748899#M32895</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1799679"&gt;@diegostefano&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I looked into the upload session stuff, but I face the exposed token problem again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The only way to avoid token exposing is, as I said, use your server as a proxy in such case (not only for link or something else generation). In such a way file size limit is hundreds of GBs and you don't need to expose any Dropbox token to the user. I don't know other way. 🤷&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 03:56:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/748899#M32895</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-02-03T03:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Dropbox API into file sharing application</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/749211#M32900</link>
      <description>&lt;P&gt;That's correct, the Dropbox API doesn't offer functionality like /2/files/get_temporary_upload_link&amp;nbsp; but for large files. I'll pass this along as a feature request, but I can't promise if or when that might be implemented.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 16:28:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/749211#M32900</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-02-05T16:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Dropbox API into file sharing application</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/749259#M32902</link>
      <description>&lt;P&gt;Ok, man! Both your proposed solutions worked, I just had problems on my end (couldn't upload large files with temporary link and chunked upload was too slow because of my server). But I understand that Dropbox only offer these options for security reasons. Thanks a lot, my friend!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 20:20:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Integrating-Dropbox-API-into-file-sharing-application/m-p/749259#M32902</guid>
      <dc:creator>diegostefano</dc:creator>
      <dc:date>2024-02-05T20:20:17Z</dc:date>
    </item>
  </channel>
</rss>

