New generic file selection mechanism