<?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: I cannot edit file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-cannot-edit-file/m-p/551984#M26243</link>
    <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code that I used to upload the file to Dropbox:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;with &lt;/SPAN&gt;&lt;SPAN&gt;open&lt;/SPAN&gt;(LOCAL_FILE&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'rb'&lt;/SPAN&gt;) &lt;SPAN&gt;as &lt;/SPAN&gt;f:&lt;BR /&gt;    &lt;SPAN&gt;# We use WriteMode=overwrite to make sure that the settings in the file&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    # are changed on upload&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Uploading " &lt;/SPAN&gt;+ LOCAL_FILE + &lt;SPAN&gt;" to Dropbox as " &lt;/SPAN&gt;+ BACK_UP_PATH + &lt;SPAN&gt;"..."&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;        dbx.files_upload(f.read()&lt;SPAN&gt;, &lt;/SPAN&gt;BACK_UP_PATH&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;mode&lt;/SPAN&gt;=WriteMode(&lt;SPAN&gt;'overwrite'&lt;/SPAN&gt;))&lt;BR /&gt;    &lt;SPAN&gt;except &lt;/SPAN&gt;ApiError &lt;SPAN&gt;as &lt;/SPAN&gt;err:&lt;BR /&gt;     ...........................&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Once the file is uploaded, I login to my Dropbox account, locate the file in my Dropbox app folder and open it, however, I can't change its content. The first line in the file is 'Scheduled Operation: False' and I would like to change 'False' to 'True' but I can't. I don't get any errors but the file seems to be read-only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 11:46:59 GMT</pubDate>
    <dc:creator>hrh747</dc:creator>
    <dc:date>2021-10-21T11:46:59Z</dc:date>
    <item>
      <title>I cannot edit file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-cannot-edit-file/m-p/551812#M26239</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As part of my familiarization with the Dropbox APIs, I have successfully uploaded a file using the API onto a folder in my Dropbox account. This is the ONLY app folder I have set up in Dropbox (not shared). However, the file is not editable, so I can't change its content manually in Dropbox. I don't seem to find a way to change the permission. Following are the screen-shots of the &lt;STRONG&gt;Settings&lt;/STRONG&gt; and the &lt;STRONG&gt;Permissions&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-10-20 200502.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/25742iFED860B7BC59C9D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-10-20 200502.png" alt="Screenshot 2021-10-20 200502.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-10-19 231336.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/25743iCC8346A53602AA1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-10-19 231336.png" alt="Screenshot 2021-10-19 231336.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 18:59:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-cannot-edit-file/m-p/551812#M26239</guid>
      <dc:creator>hrh747</dc:creator>
      <dc:date>2021-10-22T18:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: I cannot edit file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-cannot-edit-file/m-p/551866#M26240</link>
      <description>&lt;P&gt;Can you elaborate on what you mean when you say "the file is not editable"? Please share the steps and code you're following that lead to the issue, as well as whatever unexpected error or output you're getting. Be sure to redact any access token or refresh token though.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 20:39:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-cannot-edit-file/m-p/551866#M26240</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-10-20T20:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: I cannot edit file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-cannot-edit-file/m-p/551984#M26243</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code that I used to upload the file to Dropbox:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;with &lt;/SPAN&gt;&lt;SPAN&gt;open&lt;/SPAN&gt;(LOCAL_FILE&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'rb'&lt;/SPAN&gt;) &lt;SPAN&gt;as &lt;/SPAN&gt;f:&lt;BR /&gt;    &lt;SPAN&gt;# We use WriteMode=overwrite to make sure that the settings in the file&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    # are changed on upload&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Uploading " &lt;/SPAN&gt;+ LOCAL_FILE + &lt;SPAN&gt;" to Dropbox as " &lt;/SPAN&gt;+ BACK_UP_PATH + &lt;SPAN&gt;"..."&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;        dbx.files_upload(f.read()&lt;SPAN&gt;, &lt;/SPAN&gt;BACK_UP_PATH&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;mode&lt;/SPAN&gt;=WriteMode(&lt;SPAN&gt;'overwrite'&lt;/SPAN&gt;))&lt;BR /&gt;    &lt;SPAN&gt;except &lt;/SPAN&gt;ApiError &lt;SPAN&gt;as &lt;/SPAN&gt;err:&lt;BR /&gt;     ...........................&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Once the file is uploaded, I login to my Dropbox account, locate the file in my Dropbox app folder and open it, however, I can't change its content. The first line in the file is 'Scheduled Operation: False' and I would like to change 'False' to 'True' but I can't. I don't get any errors but the file seems to be read-only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 11:46:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-cannot-edit-file/m-p/551984#M26243</guid>
      <dc:creator>hrh747</dc:creator>
      <dc:date>2021-10-21T11:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: I cannot edit file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-cannot-edit-file/m-p/552030#M26245</link>
      <description>&lt;P&gt;Thanks for following up and clarifying. It sounds like you're referring to trying to edit a text file on &lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt;. The Dropbox web site doesn't offer text editing functionality for .txt files like that, but you have several options of other ways to edit the file, such as:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You can edit the file locally on your computer if you have &lt;A href="https://help.dropbox.com/installs-integrations/desktop/download-dropbox" target="_self"&gt;the Dropbox desktop client installed&lt;/A&gt;, in which case the change will sync to Dropbox automatically.&lt;/LI&gt;
&lt;LI&gt;You can download the file, edit it locally, and then upload the new version.&lt;/LI&gt;
&lt;LI&gt;You can use the &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_upload" target="_self"&gt;the files_upload method&lt;/A&gt; again to upload a new version of the file data.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 21 Oct 2021 15:20:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-cannot-edit-file/m-p/552030#M26245</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-10-21T15:20:33Z</dc:date>
    </item>
  </channel>
</rss>

