Basically what is happening, if the user uploads multiple files, say 3+.
e.g.
Then the user clicks the update button, which moves the files to required directory, and performs some other database updates, etc.
The user is then presented with the updated page, which has the documents they just upload on it, and other ones they have uploaded previously and the upload panel hidden from the screen. When they click the "Upload Documents" button again.
e.g.
The upload panel is shown again, however the control has some garbage in it from the previous upload
e.g.
The more files the user has uploaded in the first step, the more of these garbage entries that exist.
e.g.