How to code a file selector and get the selected file or item.
