Open in Safari on an iPhone
Two code blocks, one font size
const input = document.querySelector('input[type="file"]');
const status = document.querySelector('#status');
input.addEventListener("change", () => { status.textContent = new Intl.ListFormat("en").format([...input.files].map((file) => file.name)); });
if (!input.files.length) status.textContent = "No file chosen";
input.files.length