If the selected List view has more than 1999 records, the files get attached to the first 1999 records. You can define your list view accordingly.