, ".pdf", ".zip"];
		
		var output = document.getElementById("output");
		
		function getTruncatedData(buffer, length) {
			return JSON.stringify(Array.from(new Uint8Array(buffer))).slice(0, length) + "...";
		}
		
		function handleWebFile(data) {
			if (data.message == "success") {
				output.textContent = "name: " + data.name + "\ndata (Uint8Array): " + getTruncatedData(data.data, 200);
			} else if (data.message == "error") {
				alert("There was an error.");
			} else if (data.message == "cancelled") {
