Added code to take an uploaded file and store it in a temporary location.