@John_Carter4 How to pass input parameters (text, select, etc) along with file uploaded content to flow service via dsp when using post method in form?
if the additional data is limited, then you could always use query params or headers. Otherwise you need to send multiple pars as @srikanth.prathipati1803 indicated.
regards,
John.
Do you mean example code to generate this ?
or example such as a request ?
e.g.
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="XXXXboundary text"
This is a multipart message in MIME format.
--XXXXboundary text
Content-Type: text/plain
this is the body text
--XXXXboundary text
Content-Type: text/plain;
Content-Disposition: attachment;
filename="test.txt"
this is the attachment text
--XXXXboundary text--
Forgot to add that for a DSP page all you need to do is add more form inputs and the request will automatically be submitted in multiple parts as below.
------WebKitFormBoundaryFLBl4kVBtl3F5yWC
Content-Disposition: form-data;
name="name" text
------WebKitFormBoundaryFLBl4kVBtl3F5yWC
Content-Disposition: form-data;
name="description" description
------WebKitFormBoundaryFLBl4kVBtl3F5yWC
Content-Disposition: form-data;
name="fileName";
filename="test.txt"
Content-Type: text/plain
test file
------WebKitFormBoundaryFLBl4kVBtl3F5yWC--
Interestingly each input value gets its own part and not not grouped as form data, perhaps there is a way of changing that.
John.
@srikanth.prathipati1803 I have used your code and finally it worked. Below services are key part before createMimeData in order to capture the content correctly.