By converting the find and click to a 1 op this avoides the issue of a stale element.
Attach a file by drag & drop or click to upload