I want to be download a file from some public URL straight into a S3 object without downloading it first to my server and then to upload to S3.
I see here that it's possible to use File
or InputStream
:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/upload-objects.html
I can use this https://stackoverflow.com/a/6932406/4279201 with a PutObjectRequest
that accepts InputStream
but I think it will download the file to my server first and then upload it to S3, so is there a way to prevent this and upstream the file directly to S3?