Upload a file using REST API

You might find some hints here: