<?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: Error (415) from Python files_upload API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/705394#M31382</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1734738"&gt;@credentially-dev-team&lt;/a&gt; Both samples you shared here show 'size=0', meaning that both files were uploaded with empty contents. Please check your upload code to make sure you're uploading the non-empty contents that you expect for the files.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 16:57:38 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-08-10T16:57:38Z</dc:date>
    <item>
      <title>Error (415) from Python files_upload API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/677342#M30513</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to write a python script to automatically store an excel file in dropbox.&amp;nbsp; My excel file is created from turning dataframes into excel sheets.&amp;nbsp; This file has 5 sheets with a different dataframe on each sheet. The file size is less than 150 MB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file shows up in my specified folder, but shows an Error (415) and cannot be opened or download.&amp;nbsp; The API gave no errors in my terminal when it ran.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dbx.&lt;/SPAN&gt;&lt;SPAN&gt;files_upload&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;output.&lt;/SPAN&gt;&lt;SPAN&gt;read&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;/testfile3xlsx&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;mode&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;dropbox.files.WriteMode.overwrite&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;where output is an excel sheet created using pd.ExcelWriter()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 17:22:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/677342#M30513</guid>
      <dc:creator>ms97</dc:creator>
      <dc:date>2023-04-17T17:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error (415) from Python files_upload API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/677349#M30514</link>
      <description>&lt;P&gt;Can you show where/how you're getting the 415 error? For instance, is that happening on the Dropbox web site? It may be helpful if you can share a screenshot of it. If it's on the web site, be sure to show the URL for context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if the files_upload method doesn't raise an error, it should return a value containing the metadata of the uploaded file, so it may be helpful context if you can print out and share that too.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 17:36:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/677349#M30514</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-04-17T17:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error (415) from Python files_upload API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/677428#M30517</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-17 at 2.04.47 PM.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/36992iF0B4DB74EE10A72A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-17 at 2.04.47 PM.png" alt="Screenshot 2023-04-17 at 2.04.47 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am seeing the 415 error when I try to open the file in the dropbox UI.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the metadata that was returned:&amp;nbsp;&lt;/P&gt;&lt;P&gt;FileMetadata(client_modified=datetime.datetime(2023, 4, 17, 16, 26, 35), content_hash='e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', export_info=NOT_SET, file_lock_info=NOT_SET, has_explicit_shared_members=NOT_SET, id='id:FgdW-Cdpb8oAAAAAAAAAGA', is_downloadable=True, media_info=NOT_SET, name='testfile3.xlsx', parent_shared_folder_id=NOT_SET, path_display='/testfile3.xlsx', path_lower='/testfile3.xlsx', preview_url=NOT_SET, property_groups=NOT_SET, rev='5f98aa794ffabe9475031', server_modified=datetime.datetime(2023, 4, 17, 16, 26, 35), sharing_info=NOT_SET, size=0, symlink_info=NOT_SET)&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 21:08:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/677428#M30517</guid>
      <dc:creator>ms97</dc:creator>
      <dc:date>2023-04-17T21:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error (415) from Python files_upload API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/677432#M30518</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;The metadata, you posted, shows that you have uploaded nothing. That's why an error appears. Hm..&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; Such error can show a more useful message, but... Let's hope this will be improved and no so strange and confusing message gonna appear. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt;&lt;/P&gt;&lt;P&gt;Anyway, check what you're passing using 'output.read()' during your upload. As seems it's empty. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 21:31:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/677432#M30518</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-04-17T21:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error (415) from Python files_upload API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/677621#M30524</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; your output shows that your file upload was empty, which is why the Dropbox web site was not able to show the contents. You'll need to debug your integration to make sure you correctly upload the non-empty data.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 14:40:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/677621#M30524</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-04-18T14:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error (415) from Python files_upload API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/705390#M31381</link>
      <description>&lt;P&gt;I am getting a similar response when just switching the folder I am uploading to:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FileMetadata(client_modified=datetime.datetime(2023, 8, 10, 16, 22, 13), content_hash='e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', export_info=NOT_SET, file_lock_info=NOT_SET, has_explicit_shared_members=NOT_SET, id='id:MfcxP9MMQyMAAAAAAAAAHg', is_downloadable=True, media_info=NOT_SET, name='test.zip', parent_shared_folder_id=NOT_SET, path_display='/Folder2/test.zip', path_lower='/folder2/test.zip', preview_url=NOT_SET, property_groups=NOT_SET, rev='0160293ffb9dc8f0000000104e641f1', server_modified=datetime.datetime(2023, 8, 10, 16, 22, 14), sharing_info=NOT_SET, size=0, symlink_info=NOT_SET)&lt;/LI-CODE&gt;&lt;P&gt;So my problem has nothing to do with the file itself because it has been uploaded into another folder successfully:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FileMetadata(client_modified=datetime.datetime(2023, 8, 10, 16, 28, 4), content_hash='e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', export_info=NOT_SET, file_lock_info=NOT_SET, has_explicit_shared_members=NOT_SET, id='id:qzdXOVVbA8AAAAAAAAUJ_w', is_downloadable=True, media_info=NOT_SET, name='test.zip', parent_shared_folder_id='4391826353', path_display='/Folder1/test.zip', path_lower='/folder1/test.zip', preview_url=NOT_SET, property_groups=NOT_SET, rev='016029414a2b7250000000105c5f3b1', server_modified=datetime.datetime(2023, 8, 10, 16, 28, 4), sharing_info=FileSharingInfo(modified_by='dbid:AAB_CoHtiOlASmyE9l1g_5pdrDuPG1s2CIQ', parent_shared_folder_id='4391826353', read_only=False), size=0, symlink_info=NOT_SET)&lt;/LI-CODE&gt;&lt;P&gt;What do you think it could be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 16:45:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/705390#M31381</guid>
      <dc:creator>credentially-dev-team</dc:creator>
      <dc:date>2023-08-10T16:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error (415) from Python files_upload API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/705394#M31382</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1734738"&gt;@credentially-dev-team&lt;/a&gt; Both samples you shared here show 'size=0', meaning that both files were uploaded with empty contents. Please check your upload code to make sure you're uploading the non-empty contents that you expect for the files.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 16:57:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/705394#M31382</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-08-10T16:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error (415) from Python files_upload API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/705396#M31383</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1734738"&gt;@credentially-dev-team&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;PRE&gt;FileMetadata(..., size=0, ...)&lt;/PRE&gt;&lt;P&gt;So my problem has nothing to do with the file itself because it has been uploaded into another folder successfully:&lt;/P&gt;&lt;PRE&gt;FileMetadata(..., size=0, ...)&lt;/PRE&gt;&lt;P&gt;What do you think it could be?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1734738"&gt;@credentially-dev-team&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I think you cannot read those empty archives content in both cases. 🙋&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 16:58:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/705396#M31383</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-08-10T16:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error (415) from Python files_upload API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/705417#M31384</link>
      <description>&lt;P&gt;@&lt;SPAN&gt;Здравко&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, but still. Via UI I can see the file in Folder1 so it turns out empty files can be uploaded &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>Thu, 10 Aug 2023 17:43:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/705417#M31384</guid>
      <dc:creator>credentially-dev-team</dc:creator>
      <dc:date>2023-08-10T17:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error (415) from Python files_upload API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/705674#M31388</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1734738"&gt;@credentially-dev-team&lt;/a&gt; Dropbox allows you to upload empty files (that is, files with size of 0), but empty files are not valid zip files.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 13:09:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-415-from-Python-files-upload-API/m-p/705674#M31388</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-08-11T13:09:07Z</dc:date>
    </item>
  </channel>
</rss>

