This is an automated email from the ASF dual-hosted git repository. fmariani pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push: new cd535caf7af Use Actual filename, not multipart name cd535caf7af is described below commit cd535caf7af23e1ebf70b31395381c0211becad4 Author: Croway <federico.mariani.1...@gmail.com> AuthorDate: Wed Feb 5 14:02:10 2025 +0100 Use Actual filename, not multipart name --- .../platform/http/springboot/SpringBootPlatformHttpBinding.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBinding.java b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBinding.java index 71ea2d236f3..ba5280bba8a 100644 --- a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBinding.java +++ b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBinding.java @@ -126,7 +126,7 @@ public class SpringBootPlatformHttpBinding extends DefaultHttpBinding { // populate body in case there is only one attachment if (isSingleAttachment) { - message.setHeader(Exchange.FILE_NAME, name); + message.setHeader(Exchange.FILE_NAME, multipartFile.getOriginalFilename()); if (multipartFile.getContentType() != null) { message.setHeader(Exchange.CONTENT_TYPE, multipartFile.getContentType()); }