app/controllers/responses_controller.rb
# Copy the uploaded file to a temporary path we control so that if saving the response fails,
# we can inspect the XML to find out why.
Copy the uploaded file to a temporary path we control so that if saving the response fails,
we can inspect the XML to find out why.
Copy the uploaded file to a temporary path we control so that if saving the response fails we can inspect the XML to find out why .
def copy_to_tmp_path(submission_file)
    upload_path = submission_file.tempfile.path
    upload_name = File.basename(upload_path)
    tmp_path = TMP_UPLOADS_PATH.join(upload_name)
    FileUtils.mkdir_p(TMP_UPLOADS_PATH)
    FileUtils.cp(upload_path, tmp_path)
    tmp_path
  end
def copy_to_tmp_path ( submission_file ) upload_path = submission_file . tempfile . path upload_name = File . basename ( upload_path ) tmp_path = TMP_UPLOADS_PATH . join ( upload_name ) FileUtils . mkdir_p ( TMP_UPLOADS_PATH ) FileUtils . cp ( upload_path , tmp_path ) tmp_path end
Copy the uploaded file to a temporary path we control so that if saving the response fails,
we can inspect the XML to find out why.
Copy the uploaded file to a temporary path we control so that if saving the response fails we can inspect the XML to find out why .
submission_file
<not_specific>