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.