rewrite the code a bit to avoid calling the same slot more than once.
Attach a file by drag & drop or click to upload