WebComment: adds file check for comment attachment

temporary solution for #2462 

Adds a check for attaching files to a comment to make sure they are
less than the configured maximum size and deletes them before 
submitting them.