Use WAIT_FAILED rather than the corresponding literal.
Attach a file by drag & drop or click to upload