Hi. I'm having difficulty with uploading files using the API. I keep getting an error 400 "Bad Request", which doesn't give any more info about what's wrong.
The trouble is that these all explain how to do it with particular languages, such as Python. I'm using VBA, and what I really need to see is a sample of an actual HTTP request. Here's the HTTP request I'm trying...
I'm OK now. I had to install Python, run the Python code recommended by the API documentation, and see exactly what that code was sending in the HTTP request.
In case anyone else is interested, here's the HTTP request that's working for me:
To answer your point on the encoding, there's no decoding that goes on in the File Manager itself, so you would need to do the conversion and send the file in the desired format.
I'm OK now. I had to install Python, run the Python code recommended by the API documentation, and see exactly what that code was sending in the HTTP request.
In case anyone else is interested, here's the HTTP request that's working for me: