code: def upgradeUpload(self, file):
          
          files = {'upfile': open(file, 'rb')}
          return self.__post_files('/upgrade/upload',
                                   files=files)
docs: Upgrade the firmware of the miner.