<?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 PDF content gets corrupted after &amp;quot;filesUpload&amp;quot; in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PDF-content-gets-corrupted-after-quot-filesUpload-quot/m-p/578285#M26990</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to upload a pdf with valid content from mobile device to Dropbox but having trouble with the uploaded file that seems to get corrupted while being uploaded. It is a React Native (Expo) app.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the attachment for the code that I am using.&lt;/P&gt;
&lt;P&gt;I have also tried to download the file and open it in Notepad++ and can see its content (see attached).&lt;/P&gt;
&lt;P&gt;What's that I am wrong? I have tried to send the content to "filesupload" as binary as well but the uploaded pdf file is still corrupted.&lt;/P&gt;
&lt;P&gt;Many thanks in advance.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled2.png" style="width: 778px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/27715i0C165309F2B458A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/27714i06B5AE4508D94BC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 21:05:11 GMT</pubDate>
    <dc:creator>thediez</dc:creator>
    <dc:date>2022-02-17T21:05:11Z</dc:date>
    <item>
      <title>PDF content gets corrupted after "filesUpload"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PDF-content-gets-corrupted-after-quot-filesUpload-quot/m-p/578285#M26990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to upload a pdf with valid content from mobile device to Dropbox but having trouble with the uploaded file that seems to get corrupted while being uploaded. It is a React Native (Expo) app.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the attachment for the code that I am using.&lt;/P&gt;
&lt;P&gt;I have also tried to download the file and open it in Notepad++ and can see its content (see attached).&lt;/P&gt;
&lt;P&gt;What's that I am wrong? I have tried to send the content to "filesupload" as binary as well but the uploaded pdf file is still corrupted.&lt;/P&gt;
&lt;P&gt;Many thanks in advance.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled2.png" style="width: 778px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/27715i0C165309F2B458A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/27714i06B5AE4508D94BC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 21:05:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PDF-content-gets-corrupted-after-quot-filesUpload-quot/m-p/578285#M26990</guid>
      <dc:creator>thediez</dc:creator>
      <dc:date>2022-02-17T21:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: PDF content gets corrupted after "filesUpload"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PDF-content-gets-corrupted-after-quot-filesUpload-quot/m-p/578408#M26999</link>
      <description>&lt;P&gt;When uploading files to Dropbox, you should just supply the raw binary data. In the code here, there are two things that look like they may be altering or affecting the format of the data you're sending: 1) 'base64: true' on your printToFileAsync method and 2) readAsStringAsync. Those methods aren't made by Dropbox though so I can't say what exactly they do or offer guidance on those, so I recommend referring to the documentation for those for information on using them accordingly.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 18:53:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PDF-content-gets-corrupted-after-quot-filesUpload-quot/m-p/578408#M26999</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-02-16T18:53:20Z</dc:date>
    </item>
  </channel>
</rss>

