Instead of checking it in the User model, move it as deep as possible to avoid future mistakes.
Attach a file by drag & drop or click to upload