cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in hearing how one of our Community members uses Dropbox for sailing trips? Read all about it here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Improper content upload when using dropbox upload_file API

Improper content upload when using dropbox upload_file API

paul48
New member | Level 2

When I use the file_upload api to upload a file by first opening it with:

 

with open(temp_file_path, 'rb') as local_file:
file_data_local = local_file.read()
The file uploads to the correct place in dropbox.
 
However, when I get my file from a post request and try to read it and pass it into file upload the contents of the file are incorrect. Something is getting created but when I click on the file the following message is displayed: .xlsx files are supported but something went wrong.

 

I tried to download the file created and open it but it will not open as the format/content is unrecognizable.

1 Reply 1

Greg-DB
Dropbox Staff

I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:

  • the name and version number of the platform and SDK/library you are using, if any
  • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
  • the full text of the result from the Dropbox API
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?