Better error handling if attach file doesnt work (on permission denied)
and unified encrypted and unencrypted file attachment