From 563f43879cd2dc2374c5b572f4c2f0b104d24644 Mon Sep 17 00:00:00 2001 From: Jason Egan <79884278+avaryx@users.noreply.github.com> Date: Tue, 26 Jul 2022 14:05:48 -0400 Subject: [PATCH] Missing trailing forward slash The trailing forward slash (`/`) is necessary here to properly utilize the `user_uploads` directory as stated in the tutorial. --- components/storage/UploadFile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/storage/UploadFile.js b/components/storage/UploadFile.js index ddb2cb4..b9f8971 100644 --- a/components/storage/UploadFile.js +++ b/components/storage/UploadFile.js @@ -17,7 +17,7 @@ const UploadFile = () => { var file = inputEl.current.files[0] // create a storage ref - const storageRef = ref(storage, "user_uploads" + file.name) + const storageRef = ref(storage, "user_uploads/" + file.name) // upload file const task = uploadBytesResumable(storageRef, file) @@ -52,4 +52,4 @@ const UploadFile = () => { ) } -export default UploadFile \ No newline at end of file +export default UploadFile