load files using to and from request parameters