I uploaded a .txt file to an app folder via DropBox API with Python. When I try to preview the document, I get an Error (415), and if I attempt to download the txt file via the API, I get an empty file. I would be glad if anyone could help me.
Hi @bozae,
Did you specify some type of content or transport ('Content-Type' and/or 'Content-Encoding' headers) on upload time? If you did, Have you checked for their compatibility?
@bozae wrote: I uploaded a .txt file to an app folder via DropBox API with Python. ...
I uploaded a .txt file to an app folder via DropBox API with Python. ...
And... no any error as a result!? 🤔
Try upload again the file with binary type and disable any transport encoding. 😉
Hope this helps.
@bozae As Здравко explained, it sounds like you'll need to debug your upload process. If something doesn't appear to be working as expected, feel free to share the steps and code to reproduce the issue and any unexpected API error/output so we can take a look.