From 8e022e9b441854d483a217393a15092ea99f759a Mon Sep 17 00:00:00 2001 From: reiyua Date: Tue, 2 Jan 2024 07:26:44 +0000 Subject: [PATCH] Various coding and commeting tidy-up --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 4d2a84f..085e577 100644 --- a/src/App.js +++ b/src/App.js @@ -59,7 +59,7 @@ export function MyForm(props) { event.preventDefault() let unbasedData = { submitter, date, context }; - // Handle file upload + // Handle file uploading to Firebase Storage if (fileupload) { const uploadTask = uploadBytesResumable(storageRef, fileupload); @@ -69,7 +69,7 @@ export function MyForm(props) { // Get the download URL after the upload is complete const fileUrl = await getDownloadURL(uploadTask.snapshot.ref); - // Add the file URL to the form submission + // Add the file URL to the form submission in Firestore along with other variables under the collection "unbasedtakes" with variable named "fileURL" unbasedData.fileUrl = fileUrl; }); }