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

According to the code, should be "File" instead of "\SplFileInfo"
Ah, sorry, i didn't get it.
I will fix that.