Updated the servlet to properly save files for each request