cancel
Showing results for 
Search instead for 
Did you mean: 

Simulate FileUpload via HTTP Plain Adapter (input field type = file)

former_member349980
Discoverer
0 Kudos

Our Partner would like to get the payload via html input parameter with type=file.

The Szenario:

The payload is generatet in one CRM System as an individual structure. We send the payload via proxy to the integration enginge. Is it possible to simulate the fileupload technology of a simple html form with input field with type=file.

Any idea is helpfull. Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

You can do this by providing the whole HTTP body as stream with help of a Java mapping.

Another option is: Using the prolog and epilog parameters of the HTTP receiver channel for creating the form data around the payload.

Regards

Stefan

former_member349980
Discoverer
0 Kudos

Hi Stefan,

thank you for the tipps. I know about epilog parameters of plain http adapter and i. e. xslt mappings.

I don' t know how the simple html upload works and if it is possible to build multipart upload?

Manualy upload is resolvable with

<HTML>

<HEAD>

<TITLE>Upload</TITLE>

</HEAD>

<BODY>

<FORM ACTION="/cgi-sample/upload.pl" METHOD="post"

ENCTYPE="multipart/form-data">

File:&nbsp;<INPUT TYPE="file" NAME="file"><BR>

<INPUT TYPE="submit">

</FORM>

</BODY>

</HTML>

Meanwhile, we have solved the problem with a simple xslt mapping for plain html on the receiver side.

Kind regards

Jochen

Answers (0)