bitprj / Intro-To-Serverless

Managing a server is pretty complicated, but building with serverless architectures simplifies this process. As a student, mastering serverless functions can help you to build projects that solve real-world problems by integrating APIs, constructing user interfaces, and analysing data. Javascript is the core language of this course - one of the most in-demand languages to learn in the industry.
https://bitproject.org/serverless
GNU General Public License v3.0
46 stars 24 forks source link

[Content Bug] #504

Open emsesc opened 2 years ago

emsesc commented 2 years ago

Identify Steps:

Week: 4

Describe the Issue

"When I followed the walkthrough video for step 3 of week 4. I would get an error inside of my upload function. parse-multipart's Parse function was throwing an exception because it was trying to parse parts of the FormData object that it shouldn't be. This is because in the walkthrough we pass our form from the html to the constructor of the FormData object, so it included all the form elements like the textbox in our request. When parse-multipart got to the textbox info while parsing the data it would throw this exception. My fix was to use the default constructor when creating the FormData object like this:"

const payload = new FormData();

Proposed Fix

Rerecord video incorporating changes above!

Source: https://piazza.com/class/l314kw8waxv46z?cid=95