The below piece of code takes a file sent in an HTTP Request (Ajax) and saves it to the server. The code was written by someone else, but I had to modify it recently to add a unique identifier to the file so that existing files with the same name don't get overwritten. Essentially, I added these lines: The below piece of code takes a file sent in an