File uploading issue

Using below code to upload file but its not working

WebUI.uploadFile(findTestObject(‘Object Repository/NewJobType/Page_GIGKYAdmin/label_Choose image’), '/Users/hassan/Desktop/Random Files/IK.png ')

When I use WebUI.Click(), it just opens system’s file uploading dialogue box. Can anybody guide how to go through it as we cannot spy objects on native dialogue box or tell any other convenient method to upload files(mostly images)