Brendan created CAMEL-16871:
-------------------------------
Summary: Support camel-aws2-s3 multipart with remote files
Key: CAMEL-16871
URL: https://issues.apache.org/jira/browse/CAMEL-16871
Project: Camel
Issue Type: Wish
Components: camel-aws2-s3
Reporter: Brendan
Camel aws2-s3 mutlipart upload only supports Files.
There are at least two approaches to solving this:
The hard, general case and a simple specific case.
1) The harder but general case: use something like Spring's aws
[SimpleStorageInputStream|[https://github.com/spring-cloud/spring-cloud-aws/blob/main/spring-cloud-aws-core/src/main/java/org/springframework/cloud/aws/core/io/s3/SimpleStorageResource.java]
and translate any exchange body to an Inputstream for mulitpart
uploads.|https://github.com/spring-cloud/spring-cloud-aws/blob/main/spring-cloud-aws-core/src/main/java/org/springframework/cloud/aws/core/io/s3/SimpleStorageResource.java]to]
2) The simpler but specific case: for remote files in particular, camel often
makes use of a localwork directory to download files. In fact,
{code:java}
e.getIn().getBody(File.class)
{code}
will resolve when polling from an FTP site with a local work directory
specified.
The aws2-s3 producer (AWS2S3Producer.class) on lines 134 to 145 would need to
be modified in both cases.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)