I have unzipped the SDK again to make sure that there are no changes.
First change I have made - I have moved the line 60 to the line 57 to call it immediately after run but with no args:
Then I had to comment out the line 144 because of the following Exception:The access to service [uploadToken->add] is forbidden
Now you can run the project and see the Exception: Missing parameter "uploadTokenId". This is because of the merging params in a single multipart-form item. You can debug it here:
Other words the request contains two params: fileData and json. The last one contains all the params serialized to json format. But the response says that it wants to see the separate uploadTokenId parameter.