Added functionality for reading file from file request.