Since idx = -1 makes it default to idx=len, len is also a valid input idx.
Attach a file by drag & drop or click to upload