Do proper hash checking for web attachment upload.
Merge pull request #1077 from mtbc/trac-2581-first

add checksum verification for web file attachment