<?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 Image brokes when I upload files with http in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-brokes-when-I-upload-files-with-http/m-p/313682#M18623</link>
    <description>&lt;P&gt;Hi, i got a problem with upload images in dropbox. Check my code&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 647px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/7587i1FF32F9EE408AF94/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Other files are transmitted and i can read after upload in dropbox.&lt;/P&gt;&lt;P&gt;But in images files written 'This file is not available for preview.'&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:09:09 GMT</pubDate>
    <dc:creator>daniilkurlovich</dc:creator>
    <dc:date>2019-05-29T09:09:09Z</dc:date>
    <item>
      <title>Image brokes when I upload files with http</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-brokes-when-I-upload-files-with-http/m-p/313682#M18623</link>
      <description>&lt;P&gt;Hi, i got a problem with upload images in dropbox. Check my code&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 647px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/7587i1FF32F9EE408AF94/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Other files are transmitted and i can read after upload in dropbox.&lt;/P&gt;&lt;P&gt;But in images files written 'This file is not available for preview.'&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:09:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-brokes-when-I-upload-files-with-http/m-p/313682#M18623</guid>
      <dc:creator>daniilkurlovich</dc:creator>
      <dc:date>2019-05-29T09:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Image brokes when I upload files with http</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-brokes-when-I-upload-files-with-http/m-p/313685#M18624</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/53488348/image-brokes-when-i-upload-files-with-http" target="_blank"&gt;https://stackoverflow.com/questions/53488348/image-brokes-when-i-upload-files-with-http&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;You're using the "files" parameter in the Python requests library "post" method,&amp;nbsp;&lt;A href="http://docs.python-requests.org/en/master/api/#requests.Session.request" target="_blank"&gt;which seems to be for "multipart encoding upload"&lt;/A&gt;. The&amp;nbsp;Dropbox API /2/files/upload endpoint does not use&amp;nbsp;multipart encoding upload, however, and instead just expects the raw file content to be sent in the request body (to match the "Content-Type: application/octet-stream").&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update your code to use the "data" parameter to send the file data in the request body instead.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 20:23:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-brokes-when-I-upload-files-with-http/m-p/313685#M18624</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-11-26T20:23:53Z</dc:date>
    </item>
  </channel>
</rss>

