Uploading files with auth

Hi @Vitaly,

First start with Create Session, then use Update Session and POST On Session, It’ll make your life a lot easier.

Also if you are pushing the file as raw data like that, you probably also need to include a mime type in the header.

Does the DB’s API support raw file data or do you need to encode it (base64?)?

  • Do you need to embed the file content within a JSON request?
  • if it does it might need a document id in the header?

There should be documentation about uploading a file, it’s one of the trickier things to do with a NoSQL database, make sure you have everthing the documentation asks for, or better yet find a working example to compare with.

Dave.

2 Likes