If there is only one file selection and it is a local type, then it will automatically display the dialogue. Should add similar code for the other two
LocalFile now has local_file# as an ID and not just the NAME attribute