Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Allow Custom HTTP routes and preprocessors to handle binary uploads #4471

Closed
gcleaves opened this issue Oct 2, 2024 · 3 comments
Closed
Assignees

Comments

@gcleaves
Copy link

gcleaves commented Oct 2, 2024

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.

Copied from discussion #4470

@gcleaves
Copy link
Author

Olé!

@HugoCasa
Copy link
Contributor

@gcleaves we now support multipart/form-data directly
the files will be uploaded to s3 and you will get the path

@gcleaves
Copy link
Author

Glad to see my use case makes sense. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants