add progress api to uploadFile
passing test for uploadFile