Solution: use set() to avoid adding identic paths multiple times add some debugging
Attach a file by drag & drop or click to upload