POST multipart/form-data with PDF as body

Forum to discuss the Web client version of Servoy.

POST multipart/form-data with PDF as body

Postby jeffrey.vandenhondel » Wed Jul 26, 2017 11:05 am

Hello,

I try to send a POST request with the Content-Type of multipart/form-data.
For what i know is that i have to send the pdf as a body. is this possible with the plugins.http.

Kind regards,
Jeffrey
jeffrey.vandenhondel
 
Posts: 23
Joined: Thu Jul 28, 2016 9:05 am

Re: POST multipart/form-data with PDF as body

Postby vschuurhof » Mon Sep 18, 2017 9:09 am

Yes, this is possible. The HTTP plugin has a function on the "PostRequest" object which is called "addFile". With this function you can attach a physical file from disk to the request and send it.

More information about that function can be found here: https://wiki.servoy.com/display/public/ ... ame,jsFile)
Vincent Schuurhof
Servoy
vschuurhof
 
Posts: 66
Joined: Tue Dec 14, 2010 12:00 pm


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 6 guests