Upload complete example with java configuration