Skip to content

[Content Bug] #504

@emsesc

Description

@emsesc

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!

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions