The thread / process which examines the files inside the upload folder interrupts when multiple files to analyzed sequentially are present (probably in the process of reordering them).
No problem for the procedure on single file (database rows are correctly populated)
Caused by an infinite cycle in the listening thread (the sorted elements were continuously iterated as new additions made). A correction on this thread is hence done.
The thread / process which examines the files inside the upload folder interrupts when multiple files to analyzed sequentially are present (probably in the process of reordering them). No problem for the procedure on single file (database rows are correctly populated)