This prevents the dialog from staying opened with the application closed.
Attach a file by drag & drop or click to upload