We're Hiring!

Mattermost, Inc.

Upload API binary file request example

Hi !

I’d like to use API v4 Uploads.

API docs says :

The request body can be in one of two formats:

Binary file content streamed in request’s body
multipart/form-data

And :

REQUEST BODY SCHEMA: application/x-www-form-urlencoded

Where can I find an example of “binary file content streamd in request’s body” request format ?

I use raw PHP.

Thx,