Sidebar

Handling multipart/form-data POSTs in a source node

0 votes
367 views
asked Apr 30, 2018 by (240 points)

I'm trying to setup a HTTP Listener source node that will accept HTML form POSTs containing a file (in my case, a .xlsx file).

There seems to be issues handling the POST before I can use it in my mapping nodes.

1. If I submit a multipart form containing just the file, looks like invalid CDATA gets produced for the Content node when QIE does its request conversion into XML

2. If I submit a multipart form containing a bogus text input along with the file, the Content node looks alright, but I see this element in the request 
<ErrorParsingContent>Unable to parse MTOM message.  We are in an infinite loop.</ErrorParsingContent>

What is the correct approach to accomplishing this task?

1 Answer

0 votes
Looks like our HTTP Receiver was not accounting for the way that HTML Forms post file content (without a content-id and without a transfer encoding).  We logged a bug and have fixed the issue.  The fix will be available in version .45.
answered May 10, 2018 by mike-r-7535 (13,830 points)
...