You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2025/05/01 08:25:00 UTC
[jira] [Created] (CAMEL-22042) camel-http - Make it easier to do file upload as MultiPart-Form
Claus Ibsen created CAMEL-22042:
-----------------------------------
Summary: camel-http - Make it easier to do file upload as MultiPart-Form
Key: CAMEL-22042
URL: https://issues.apache.org/jira/browse/CAMEL-22042
Project: Camel
Issue Type: Improvement
Components: camel-http
Reporter: Claus Ibsen
Fix For: 4.x
[https://camel.zulipchat.com/#narrow/channel/257298-camel/topic/multipart.2Fform-data.20file.20upload]
[https://github.com/apache/camel/commit/aa3ac733def1a130a6b910e6c67d0eea2b10b603]
We should make it easier to do a file upload where you can tell Camel to make the message body into MultiPart. So the body can be a File / GenericFile / or input stream, and then Camel will create an MutlipartEntity with a single entity of data.
Today you need to build this using java code as shown in the unit test.
The FileEntity is not multipart but just a POST of the file as-is
--
This message was sent by Atlassian Jira
(v8.20.10#820010)