Charles: corrected the redirect of the upload functionality.