Let’s say I have multiple file attachments named
- test-a.csv
- test-b.csv
And I would like to pick one interactively. Something like this doesn’t work:
vSet = Inputs.select(["a", "b"], {label: "Set", multiple: false});
fileName = `test-${vSet.value}.csv`;
data = FileAttachment(fileName).csv({typed: true});
SyntaxError: FileAttachment requires a single literal string argument
Here is an example document: Interactive file selection / workbook | Observable
Thanks!