At connect and close time instead of initialization time.
Attach a file by drag & drop or click to upload