add upload to server function, fix jsonconvert