I get a malformed file when I try upload a simple excel file with python sdk
my code looks like:
xls = 'Path\\xxxxx.xlsx' try: with open(xls, 'r') as upxls: dbx.files_upload(upxlsx.read(),'/test.xlsx', mode=dropbox.files.WriteMode("overwrite")) except Exception as e: print e
Is there a bug in my code or the dropbox python module?
Solved! Go to solution.
Having the same issue, using the same code OP uses and I tried open(xls,'rb') but it's still coming out as corrupted. Any ideas how to sort it?
Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.
Not the right discussion for you? Find out what else our Community has to say about API Support.
Or, search our Help Center for even more.