Adding code to handle a file upload