Merge RestAPI with basic funcionality

It is used to limit the File Size that can be uploaded to the server. After 4 GB in the above example the upload is cancelled.