iavasquez opened a new issue, #2048:
URL: https://github.com/apache/hop/issues/2048

   ### What would you like to happen?
   
   Most APIs expect binary files to be uploaded via multipart/form-data POST 
with boundaries encasing the file data (this is how Postman automatically Posts 
a file, for example).  
   
   If using the "Post a file" flag in the current HTTP Post transform, it 
merely posts the binary data with no boundary or descriptors in the raw HTTP 
and it discards any Body Parameters that may have been configured on the Fields 
tab.  See screenshot for example. 
   
   A solution is to use org.apache.http.entity.mime.MultipartEntityBuilder to 
build the request entity using the addBinaryBody method for a file upload and 
addTextBody for body parameters.  This would allow proper upload of binary 
files and the ability to post both a binary file and body parameters rather 
than the current limitation to one or the other. 
   
   ![Screen Shot 2022-12-11 at 3 01 05 
PM](https://user-images.githubusercontent.com/8596173/206932244-2cc88cd5-d3ad-4d99-ac9f-e93780f58a20.jpg)
   
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: Transforms


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to