method so it can be reused by the new extension dialog.
Attach a file by drag & drop or click to upload