def METHOD_NAME(self, info):
    name = 'authorized_upload'
    mail_utils.addTemplateDirectory(os.path.join(_HERE, 'mail_templates'))
    events.bind('rest.post.file.before', name, _authorizeInitUpload)
    events.bind('rest.post.file.after', name, _storeUploadId)
    events.bind('rest.post.file/chunk.before', name, _authorizeUploadStep)
    events.bind('rest.post.file/completion.before', name, _authorizeUploadStep)
    events.bind('rest.get.file/offset.before', name, _authorizeUploadStep)
    events.bind('model.file.finalizeUpload.after', name, _uploadComplete)
    info['apiRoot'].authorized_upload = AuthorizedUpload()