as on AddFiles page, check for duplicate filename and bad characters