generated from bitprj/cabin
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
Identify Steps:
- Step 3
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!