Fix broken file validators

Ghost User
2019-06-04T20:08:35+02:00

#### Previous behaviour
Steps to reproduce:

1. Upload a txt or pdf file
2. Error

#### New behaviour
Steps to validate that it works:

1. Upload a txt or pdf file
2. Works