- From: James Craig <notifications@github.com>
- Date: Tue, 11 Nov 2025 20:52:35 -0800
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 12 November 2025 04:52:42 UTC
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