Coding my own upload endpoint (--server-url)

I’m trying to figure out what data and in what format the upload command with a custom API endpoint using version 3.0-rc4

asciinema-x86_64-unknown-linux-gnu upload public/make.cast --server-url=https://127.0.0.1:8000/

I’m receiving the POST, but I was hoping to get the contents of make.cast somehow. I’m wondering if the CLI first compresses it, or if it’s streamed, or what.

Can someone point me to the code that handles this, or documentation for the API endpoint?

The answer is “it’s an uploaded file”.

I see you got somewhere :slight_smile:

The upload API is simple but not document (yet). I’ll be extending the API with a few new endpoints soon, and will document it properly on this occasion.