remove file model from files collection if user clicks cancel or clear button

otherwise user can't upload same files again if the files are cancelled or cleared before