#2863: Uploading non-duplicate file functions correctly.
#2863: New files can be selected for insertion.
#2863: Fix ajax behavior of newly added items