<?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: Upload image file using fetch in js in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/365891#M20750</link>
    <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;after the upload action I could see the data which i'm sending to dropbox in base64 format, but instead of seeing the image I see the data which i send.&lt;BR /&gt;&lt;BR /&gt;I tried different methods and for 1 option I was successful which was sending the file object which I get from &amp;lt;input type="file"&amp;gt; value. I understand that there's no need to convert the file to base64&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2019 06:47:26 GMT</pubDate>
    <dc:creator>Rosemol</dc:creator>
    <dc:date>2019-09-19T06:47:26Z</dc:date>
    <item>
      <title>Upload image file using fetch in js</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/365524#M20732</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I'm new to Dropbox API and I'm trying to upload image files from our website to dropbox using api. I'm using FETCH to POST data to dropbox and the file is uploading.However, the image is not getting loaded in dropbox. Below is code that I use:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;fetch('https://content.dropboxapi.com/2/files/upload', {
    method: 'post',
    body: file1, //Base64 
    headers: {'Authorization': 'Bearer '+MY_TOKEN,
              'Content-Type': 'application/octet-stream',
              'Accept': 'application/json',
	      'Dropbox-API-Arg': '{"path": "/test1/test.jpg","mode": "add","autorename": false,"mute": false,"strict_conflict": false}'
                                }
  }).then(function(response) {
        console.log(response.json());
  });&lt;/PRE&gt;
&lt;P&gt;Please help me out with this issue. Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 19:45:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/365524#M20732</guid>
      <dc:creator>Rosemol</dc:creator>
      <dc:date>2019-09-17T19:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Upload image file using fetch in js</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/365561#M20737</link>
      <description>&lt;P&gt;Can you clarify what you mean when you say "the image is not getting loaded in dropbox"? What are you seeing or not seeing exactly?&lt;/P&gt;
&lt;P&gt;Also, can you share the response you get from&amp;nbsp;/2/files/upload? If the call was successful, it should either contain the metadata of the uploaded file, or if it wasn't successful, an error indicating why.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 15:10:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/365561#M20737</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-17T15:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Upload image file using fetch in js</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/365891#M20750</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;after the upload action I could see the data which i'm sending to dropbox in base64 format, but instead of seeing the image I see the data which i send.&lt;BR /&gt;&lt;BR /&gt;I tried different methods and for 1 option I was successful which was sending the file object which I get from &amp;lt;input type="file"&amp;gt; value. I understand that there's no need to convert the file to base64&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 06:47:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/365891#M20750</guid>
      <dc:creator>Rosemol</dc:creator>
      <dc:date>2019-09-19T06:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Upload image file using fetch in js</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/365948#M20752</link>
      <description>&lt;P&gt;Thanks for following up. I'm glad to hear you got this working as desired.&lt;/P&gt;
&lt;P&gt;Yes, that's correct, there's no need to apply an additional&amp;nbsp;encoding.&amp;nbsp;Dropbox will accept whatever data you upload exactly as you upload it. So, if you want to upload an image that can be viewed later, you should just upload the unmodified raw data.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 14:34:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/365948#M20752</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-19T14:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Upload image file using fetch in js</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/387163#M21505</link>
      <description>&lt;P&gt;i am getting this as response&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Error in call to API function "files/upload": HTTP header "Dropbox-API-Arg": could not decode input as JSON&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jan 2020 04:46:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/387163#M21505</guid>
      <dc:creator>khan_sikki</dc:creator>
      <dc:date>2020-01-03T04:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Upload image file using fetch in js</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/387255#M21511</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1248003"&gt;@khan_sikki&lt;/a&gt;&amp;nbsp;I see you also requested help for this issue in your support ticket&amp;nbsp;and included more information there, so we'll follow up with you there shortly.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:33:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-image-file-using-fetch-in-js/m-p/387255#M21511</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-03T16:33:51Z</dc:date>
    </item>
  </channel>
</rss>

