Corrected "First delete all existing records" functionality when uploading CSV or excel files
Issue reported by Paul Chatelain & Thomas Beguin