Open lbittner-pdftron opened 6 years ago
I'm experiencing the same issue.
Adding the quick solution above to line 50 seem to have resolved it. I suspect that line 38 requires a similar fix.
Merge request on review @lbittner-pdftron , @tmadej check https://github.com/sergolius/aws-lambda-multipart-parser
@sergolius Thanks. Your fork works for me
Issue
When submitting a form with a multiline value such as:
Anything after 'Test line one' gets removed.
After some debugging I figured out that this code (line 50 as of now):
is the issue. The input of the sample text above looks like so:
And the split() call is only taking the first element in the array, which is
Test line one,
.Quick solution
For now, I just changed that line to this:
Keep in mind that this changes any amount of new lines to a single new line. I don't have time to create a PR, but you could do something similar to support multi line inputs.