Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser crashes on simple form fields included in formData #6

Open
rcfrias opened this issue Aug 17, 2017 · 1 comment
Open

Parser crashes on simple form fields included in formData #6

rcfrias opened this issue Aug 17, 2017 · 1 comment

Comments

@rcfrias
Copy link

rcfrias commented Aug 17, 2017

While testing the parser, I noticed that sending data other than files causes the script to crash while processing each part.

so adding fields to the formData like this:

formData.append('name', product.name);
formData.append('uploadFile', file, file.name);

Would cause an error like this:

var k = str.split('=');
		^
TypeError: Cannot read property 'split' of undefined

To fix this issue, additional condition for non-file data must be included in the parser process logic.

@christiansalazar
Copy link
Contributor

christiansalazar commented Aug 17, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants