Use correctly the GetOpenFileName function. Use _lcreat instead of _lopen to create a new file.
Attach a file by drag & drop or click to upload