Clean up the sword controller a little and add the maxfilesize to upload error messages.