Show an example to upload a file to a case with a REST API
This page show you how to implement a File Upload in your Custom page.
Define a process with a Document variable, and create a case in this process. So, you need to have a the case id and the Document Name.