Where is `getFileExtension`? Looks like you copy-pasted this code from my `FileController` without reading it thoroughly.