def METHOD_NAME(self, path: str) -> None:
    """Add Content-Disposition header for downloadable files.
    Set header value to "attachment" indicating that file should be saved
    locally instead of displaying inline in browser.
    We also set filename to specify the filename for downloaded files.
    Used for serving downloadable files, like files stored via the
    `st.download_button` widget.
    """
    media_file = self._storage.get_file(path)
    if media_file and media_file.kind == MediaFileKind.DOWNLOADABLE:
        filename = media_file.filename
        if not filename:
            filename = f"streamlit_download{get_extension_for_mimetype(media_file.mimetype)}"
        try:
            # Check that the value can be encoded in latin1. Latin1 is
            # the default encoding for headers.
            filename.encode("latin1")
            file_expr = 'filename="{}"'.format(filename)
        except UnicodeEncodeError:
            # RFC5987 syntax.
            # See: https://datatracker.ietf.org/doc/html/rfc5987
            file_expr = "filename*=utf-8''{}".format(quote(filename))
        self.set_header("Content-Disposition", f"attachment; {file_expr}")