Store the selected filename to localstorage