file.info does not work in r shiny?

If I may, it is really difficult to help you without any reproducible example.

Can you try to build something up ?