Removed PyErr_BadArgument() calls and replaced them with more useful error messages.
Attach a file by drag & drop or click to upload