parameters: (self, model, path)
docstring: Handle upload of a new file to path
docstring_summary: Handle upload of a new file to path
docstring_tokens: Handle upload of a new file to path
function: def _upload(self, model, path):
          """Handle upload of a new file to path"""
          self.log.info(u"Uploading file to %s", path)
          model = yield maybe_future(self.contents_manager.new(model, path))
          self.set_status(201)
          validate_model(model, expect_content=False)
          self._finish_model(model)
function_tokens: def _upload ( self , model , path ) : self . log . info ( u"Uploading file to %s" , path ) model = yield maybe_future ( self . contents_manager . new ( model , path ) ) self . set_status ( 201 ) validate_model ( model , expect_content = False ) self . _finish_model ( model )