[VOV-1922] Close the uploaded tempfile to prevent handle leakage

Rails is getting confused by our renaming/copying of the uploaded tempfile, and holding the handle open. This causes blocking when the redirect request tries to use the same worker thread on the server.