Learn Courses My Dashboard

Uploading Images to Firebase Storage Image ID question

So I was watching this video from Chris which was very helpful:

When he is upload the image to the database the image name is a randomly generated ID. Which is awesome, but if you have tons of users whats the chance that there are conflicts using this strategy?

he uses UUID().uuidstring


Hi Mike,

Welcome to the community.

A UUID() is always unique. This from Wikipedia:

So that is why the images are named that way.