fix uploadFile() params assignment && update docs && add test cases