'Uploads accepted entries to the specified SFTP server.'

def on_task_output(self, task, config):

    config = self.prepare_config(config)
    sftp = sftp_from_config(config)
    url_prefix = sftp_prefix(config)
    for entry in task.accepted:
        if sftp:
            log.debug((u'Uploading    file:    %s' % entry))
            self.handle_entry(entry, sftp, config, url_prefix)
        else:
            log.debug((u'SFTP    connection    failed;    failing    entry:    %s' % entry))
            entry.fail((u'SFTP    connection    failed;    failing    entry:    %s' % entry))
