Creating a reactive file controller