Use getPathname() instead of string casting to get BinaryFileReponse file path

According to the code, should be "File" instead of "\SplFileInfo"
By the way, the "f" in ``getFile()`` should be upper-cased.