From Dev.to
3 Pointer Commits to Safely Replace Existing Avatar Upload Files in Object Storage
Short answer: give every avatar upload a unique object key, verify the new object, atomically move the user's database pointer, and delete the former object later. Don't overwrite the current key in p...
