fixed up dialog, backported some code from Pd-Vanilla 0.46
Attach a file by drag & drop or click to upload