Skip to content

Conversation

avaryx
Copy link

@avaryx avaryx commented Jul 26, 2022

The trailing forward slash (/) is necessary here to properly utilize the user_uploads directory as stated in the tutorial.

The trailing forward slash (`/`) is necessary here to properly utilize the `user_uploads` directory as stated in the tutorial.

// create a storage ref
const storageRef = ref(storage, "user_uploads" + file.name)
const storageRef = ref(storage, "user_uploads/" + file.name)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and alternative is ref(storage, "user_uploads", file.name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants