pass object to uploadfile