code: def upload(self, file, path):
          
  
          with open(file, "rb") as f:
              resp = self._sendRequest("PUT", path, data=f)
              if resp.status_code != 201:
                  raise YaDiskException(resp.status_code, resp.content)
docs: Upload file.