check if the file with same file name and ownerId already exists. If true, upload will terminate.