You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. The preprocessor functionality is really interesting. But can it handle an HTTP binary upload? I get an 415
Unsupported Media Type when trying a binary upload with Postman.
I have a flow which processes a file and returns some data about the file. At the moment the flow takes base64 input. But I'd like to see if I can decrease the upload size by allowing a binary upload instead of having to use base64 text. The goal is also to improve the endpoint consumer's experience so they can use a tool like Postman or Curl without first needing to convert the file to base64.
Maybe the acceptable content-type could be set in the Custom HTTP route and it passes the raw body to the preprocessor.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi. The preprocessor functionality is really interesting. But can it handle an HTTP binary upload? I get an 415
Unsupported Media Type when trying a binary upload with Postman.
curl --location 'http://domain.com/api/r/test?a=1&b=2' --header 'Content-Type: application/pdf' --data '@/temp/tm1.a.pdf'I have a flow which processes a file and returns some data about the file. At the moment the flow takes base64 input. But I'd like to see if I can decrease the upload size by allowing a binary upload instead of having to use base64 text. The goal is also to improve the endpoint consumer's experience so they can use a tool like Postman or Curl without first needing to convert the file to base64.
Maybe the acceptable content-type could be set in the Custom HTTP route and it passes the raw body to the preprocessor.
All reactions