The public screenshot kept the client file's extension, so a valid image named x.html or x.svg was stored and served under that type. The disk name now carries the client extension only when it names the sniffed type, else the type's own; file_name keeps only the client's base name.