add error counting for some missed behaviors. (cherry picked from commit 43eb0ce3)
Attach a file by drag & drop or click to upload