def set_file(stream, content_type=None, content_encoding=None):
    """Re-upload data for this file object. It will change the
        ``content_type`` and ``content_encoding``, however id, title,
        etc. will not change. If ``content_type`` is None, it will be
        detected with ``content_encoding``, if possible.
        """
