whaleyl
7 years agoNew Contributor III
REST Post Multipart Form-Data + File Upload Issue
I’m having trouble correctly formatting multipart form-data to be sent as the body of a REST Post request along with a single file upload.
I’ve managed to get the Post request to correctly send in Postman with the required key/value pairs and a test file:
However, when attempting to replicate this in SnapLogic I am unsuccessful.
I’ve managed to correctly map the key/value pairs in a mapper, and have created the following JSON in a JSON generator using my mapped values:
I’ve used my “entity” object as the HTTP entity in my Post request, and pointed to a local test file for upload in my REST Post snap:
Is my approach to compiling the form-data correct, or no?