Now it properly returns error. Added respective test case.
Attach a file by drag & drop or click to upload