I'm trying to upload a file from a Zoom recording to Amazon S3. I have the download url but I don't want to download the file in the server before uploading it to Amazon S3 to avoid using all the resources. Is there a way to do that?
CodePudding user response:
You can use the method put
that uses a stream to upload an object on AmazonS3:
Uploads the specified input stream and object metadata to Amazon S3 under the specified bucket and key name
So basically you can:
- download from zoom as stream
- use this stream as parameter to AmazonS3
In this case you don't need to store locally the file because the stream is redirected to AWS.