If not used the last parameter of CreateFile must be 0, not -1.
Attach a file by drag & drop or click to upload