The V2 student form has a special button that are meant to upload pdfs. This includes things such as student info, waivers, etc. Essentially this specific task is centered around implementing that button component.
Method of Implementation:
The general idea is that we want to store the file on firebase and the store the link reference on MongoDb with the associated student. The firebase documentation and this video has a pretty good explanation on how this should work. Most of the other videos online show uploading images as an example but the same process should work for pdfs.
For this particular task you DO NOT need to worry about updating the MongoDb. That's something we'll deal with when creating the new V2 student form. If you want to think about it in terms of creating a function essentially once the file has been successfully uploaded we want to return the link reference. By link reference I mean the "some-child" part of this line const storageRef = ref(storage, 'some-child');
in the documentation because that is what will be needed to retrieve the reference in other parts of the app.