Detect duplicate files when uploading