ticket #1165 - don't allow duplicate files.