<?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 I want to save a file outside of the Apps folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739705#M32659</link>
    <description>&lt;P&gt;Hello!&lt;BR /&gt;I am currently saving files in my 'Apps' folder using the files_upload() API. I want to save files in a seperate environment than 'Apps' where users are already looking. I believe my Dropbox key has permission to do this, but I cannot figure out the path settings to get this to integrate correctly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;folder = 'testing'
        filename = 'test_12_28_23'
        path = '/AccountingCloseoutFiles/' + folder + '/' + filename
        myRange = np.arange(1,1001,1)
        df = pd.DataFrame({"numbers": myRange})
        try:
             with io.BytesIO() as stream:
                with pd.ExcelWriter(stream) as writer:
                    df.to_excel(writer, sheet_name='test',
                                    index=False)
                stream.seek(0)
                dbx.files_upload(stream.getvalue(),
                                 path,
                                 mode=dropbox.files.WriteMode.overwrite)
        except Exception as e:
            logger.critical('File was unable to be saved to dropbox.')
            logger.critical(f'Error: {e}')
            sys.exit(1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code works, but it stores data in 'Apps' instead of the 'AccoutingCloseoutFiles' parent folder that I want it in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Dec 2023 22:59:34 GMT</pubDate>
    <dc:creator>ms97</dc:creator>
    <dc:date>2023-12-28T22:59:34Z</dc:date>
    <item>
      <title>I want to save a file outside of the Apps folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739705#M32659</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;I am currently saving files in my 'Apps' folder using the files_upload() API. I want to save files in a seperate environment than 'Apps' where users are already looking. I believe my Dropbox key has permission to do this, but I cannot figure out the path settings to get this to integrate correctly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;folder = 'testing'
        filename = 'test_12_28_23'
        path = '/AccountingCloseoutFiles/' + folder + '/' + filename
        myRange = np.arange(1,1001,1)
        df = pd.DataFrame({"numbers": myRange})
        try:
             with io.BytesIO() as stream:
                with pd.ExcelWriter(stream) as writer:
                    df.to_excel(writer, sheet_name='test',
                                    index=False)
                stream.seek(0)
                dbx.files_upload(stream.getvalue(),
                                 path,
                                 mode=dropbox.files.WriteMode.overwrite)
        except Exception as e:
            logger.critical('File was unable to be saved to dropbox.')
            logger.critical(f'Error: {e}')
            sys.exit(1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code works, but it stores data in 'Apps' instead of the 'AccoutingCloseoutFiles' parent folder that I want it in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 22:59:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739705#M32659</guid>
      <dc:creator>ms97</dc:creator>
      <dc:date>2023-12-28T22:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: I want to save a file outside of the Apps folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739747#M32660</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1680444"&gt;@ms97&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;No, your application doesn't have such permission. You have limited your application permission to access (not only save) files and/or folders within app specific folder only and nothing outside. That's your choice! As seems, this choice is unintentional. You need full access application, not app' folder type! Unfortunately, such permission cannot get changed (unlike other permissions, like scopes, for instance). You need to recreate your application and select correct application type at creation moment (as noted, later cannot change).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 06:39:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739747#M32660</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-12-29T06:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: I want to save a file outside of the Apps folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739805#M32661</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1680444"&gt;@ms97&lt;/a&gt;&amp;nbsp;Здравко is correct; you cannot change the access type ("app folder" versus "full Dropbox") on an existing app. You can find &lt;A href="https://www.dropbox.com/developers/reference/developer-guide#app-permissions" target="_blank"&gt;more information on access types here&lt;/A&gt;. You can &lt;A href="https://www.dropbox.com/developers/apps/create" target="_blank"&gt;register a new app with full Dropbox access here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 13:54:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739805#M32661</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-12-29T13:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: I want to save a file outside of the Apps folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739830#M32662</link>
      <description>&lt;P&gt;Thank you for the information! My app has full Dropbox access already, but no matter what path I give it, it is stored in the App folder.&amp;nbsp; I have two apps one is limited to 'App folder' and one is not.&amp;nbsp; When using bi_automation, it still only stores files inside the app folder. Is there a way to change this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-12-29 at 8.24.00 AM.png" style="width: 600px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/43091iD567EAFFC9E421BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-12-29 at 8.24.00 AM.png" alt="Screenshot 2023-12-29 at 8.24.00 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 16:25:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739830#M32662</guid>
      <dc:creator>ms97</dc:creator>
      <dc:date>2023-12-29T16:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: I want to save a file outside of the Apps folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739831#M32663</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1680444"&gt;@ms97&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&amp;nbsp; When &lt;EM&gt;&lt;STRONG&gt;using bi_automation&lt;/STRONG&gt;&lt;/EM&gt;, it still only stores files inside the app folder. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What do you mean when you say "using bi_automation"?&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Did you change only the app key only and continue use the existing tokens or perform full re-authentication? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 16:33:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739831#M32663</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-12-29T16:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: I want to save a file outside of the Apps folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739870#M32664</link>
      <description>&lt;P&gt;I did a full re authentification using a new app&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 17:22:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739870#M32664</guid>
      <dc:creator>ms97</dc:creator>
      <dc:date>2023-12-29T17:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: I want to save a file outside of the Apps folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739874#M32665</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1680444"&gt;@ms97&lt;/a&gt; If you perform an upload using the Dropbox API and it is automatically rooted in the app folder, that means you are using an access token for the app for that app folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Registering and authorizing a new app with full Dropbox access won't change existing access tokens (or refresh tokens); existing access tokens (and refresh tokens) for the app folder app will continue to only have access to the app folder. To upload outside the app folder, you'd need to switch to using an access token for the full Dropbox app instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To address this, get an access token (and refresh token, if using) for the full Dropbox app, and update your app as needed to make sure that it is using an access token (and refresh token, if using) for the full Dropbox app in the creation of the 'dbx' object that you're using to perform the upload.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 18:08:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-want-to-save-a-file-outside-of-the-Apps-folder/m-p/739874#M32665</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-12-29T18:08:08Z</dc:date>
    </item>
  </channel>
</rss>

