Updated the servlet to reflect the changes to File