[w3c/FileAPI] Web Share API images have optional title, but seem to be missing alt. (Issue #215)

cookiecrook created an issue (w3c/FileAPI#215)

Web Share API images have optional title, but seem to be missing alt.

```js
shareButton.addEventListener("click", async () => {
  const file = new File(data, "some.png", { type: "image/png" });
  try {
    await navigator.share({
      title: "Example File",
      files: [file],
      alt: "Marcos??? 🧐"  // accessible text alternative for the image, equivalent to HTML alt attr
    });
  } catch (err) {
    console.error("Share failed:", err.message);
  }
});
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/issues/215
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/FileAPI/issues/215@github.com>

Received on Wednesday, 12 November 2025 04:52:42 UTC