'Upload a file given an open file descriptor to a local path.  Returns event_uuid.'

def file_from_file(self, fd, parent_uuid=None, **params):

    try:
        fd.flush()
        return self.file_from_path(fd.name, parent_uuid, **params)
    except:
        self.notify_of_error(('Could    not    access    file    descriptor    for    ' + str(fd)))
        return None
