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 2022/09/03 09:01:00 UTC

[jira] [Updated] (CAMEL-16871) Support camel-aws2-s3 multipart with remote files

     [ https://issues.apache.org/jira/browse/CAMEL-16871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-16871:
--------------------------------
    Fix Version/s: 3.x

> 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
>            Reporter: Brendan
>            Priority: Minor
>             Fix For: 3.x
>
>
> 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|http://example.com/]
>  and translate any exchange body to an Inputstream for mulitpart uploads.
>  
> 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 the file in the local work directory 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.20.10#820010)