In my UI, there is an icon for ‘Open File’. When user clicks this icon, a normal file browser window opens. The user selects a file by browsing through the computer.
The user should only select specific type of files through my UI (lets say only file of type ‘.abc’ can be selected).
There are two possible ways to tell this to the user:
User can open file on any type and when he tries to select an invalid format, a warning message appears.
Only files of type .abc are visible to the user and option to change this file type is not given to the user.
I find option 2 better but I don’t see any examples of his behavior in existing software. Can anyone provide examples or other supporting evidence that shows whether option 1 or 2 is a better experience for the user?
Edit: I just realized that option 2 cannot be used in web browser based application and my application is web based so I cannot use option 2. Have to come up with something other than this option. May be showing all types of files and making unsupported formats un clickable.