Now that CloseFilter() may be called again, we can reduce code duplication.
Attach a file by drag & drop or click to upload