Improve consistency of trace upload forms and error handling.