Do proper hash checking for web attachment upload.
Adapt for model changes in develop.
Merge pull request #1081 from mtbc/pr-1077-rebase

add checksum verification for web file attachment (rebase)