<?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 Dropbox as python app filesystem in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-as-python-app-filesystem/m-p/99502#M2983</link>
    <description>&lt;P&gt;Hello guys I wrote an app with Flask/python and deployed on Heroku. Than I realised Heroku destroys files written within its filesystem. So I thought I could maybe use dropbox for uploading and deleting users avatar images.&lt;/P&gt;

&lt;P&gt;I need to to something like the following:&lt;/P&gt;

&lt;P&gt;Delete avatar of user:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;image = 'static/uploads/' + str(userToDelete) + '.jpg'
os.remove(image)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Create avatar for user where name is user ID:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;filename = str(userName.id)
file.save(os.path.join(
                    app.config['UPLOAD_FOLDER'],
                    filename + ".jpg")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The ideal thing would be to create a dropbox public folder, get its URL and store there one image per user being the image name the users id .jpg&lt;/P&gt;

&lt;P&gt;Like:&lt;BR /&gt;
&lt;A href="https://www.dropbox.com/myaccount/avatars/1.jpg" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/myaccount/avatars/1.jpg&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://www.dropbox.com/myaccount/avatars/2.jpg" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/myaccount/avatars/2.jpg&lt;/A&gt;&lt;BR /&gt;
ETC...&lt;/P&gt;

&lt;P&gt;This way i don't need a table to store url for each user avatar.&lt;/P&gt;

&lt;P&gt;Is this possible with dropbox&lt;/P&gt;

&lt;P&gt;I am completely new to dropbox API, help and suggestions are very much apreciated&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:45:21 GMT</pubDate>
    <dc:creator>alex t.14</dc:creator>
    <dc:date>2019-05-29T09:45:21Z</dc:date>
    <item>
      <title>Dropbox as python app filesystem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-as-python-app-filesystem/m-p/99502#M2983</link>
      <description>&lt;P&gt;Hello guys I wrote an app with Flask/python and deployed on Heroku. Than I realised Heroku destroys files written within its filesystem. So I thought I could maybe use dropbox for uploading and deleting users avatar images.&lt;/P&gt;

&lt;P&gt;I need to to something like the following:&lt;/P&gt;

&lt;P&gt;Delete avatar of user:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;image = 'static/uploads/' + str(userToDelete) + '.jpg'
os.remove(image)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Create avatar for user where name is user ID:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;filename = str(userName.id)
file.save(os.path.join(
                    app.config['UPLOAD_FOLDER'],
                    filename + ".jpg")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The ideal thing would be to create a dropbox public folder, get its URL and store there one image per user being the image name the users id .jpg&lt;/P&gt;

&lt;P&gt;Like:&lt;BR /&gt;
&lt;A href="https://www.dropbox.com/myaccount/avatars/1.jpg" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/myaccount/avatars/1.jpg&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://www.dropbox.com/myaccount/avatars/2.jpg" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/myaccount/avatars/2.jpg&lt;/A&gt;&lt;BR /&gt;
ETC...&lt;/P&gt;

&lt;P&gt;This way i don't need a table to store url for each user avatar.&lt;/P&gt;

&lt;P&gt;Is this possible with dropbox&lt;/P&gt;

&lt;P&gt;I am completely new to dropbox API, help and suggestions are very much apreciated&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:45:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-as-python-app-filesystem/m-p/99502#M2983</guid>
      <dc:creator>alex t.14</dc:creator>
      <dc:date>2019-05-29T09:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox as python app filesystem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-as-python-app-filesystem/m-p/99503#M2984</link>
      <description>&lt;P&gt;The typical use of the Dropbox API is for when your app needs to read and write files in &lt;STRONG&gt;a user's&lt;/STRONG&gt; Dropbox, not your own account. The use you describe here seems like a better use case for something like S3, which, for example, doesn't have bandwidth limits (like Dropbox does). Here are Heroku's docs on using S3: &lt;A href="https://devcenter.heroku.com/articles/s3" rel="nofollow noreferrer"&gt;https://devcenter.heroku.com/articles/s3&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 00:52:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-as-python-app-filesystem/m-p/99503#M2984</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-02-11T00:52:03Z</dc:date>
    </item>
  </channel>
</rss>

