checks for duplicate in annex before uploading