Contains logic to get files from client using REST