fixed multiple selection of same non allowed file types

This pull fixes the issue below:
- When user selects same non-allowed file type 2 times or more, error alert is not prompted.