Process and avoid duplicates after upload