Fix file selection logic

Fixed that users can select multiple files or one by one without having
to do a checkbox thing.