Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What difference between AWS.S3.ManagedUpload() and s3.upload() methods?

This is the link of information about of API AWS-sdk.

http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3/ManagedUpload.html#constructor-property

like image 515
apaternina Avatar asked Mar 09 '17 16:03

apaternina


1 Answers

They are basically the same thing. s3.upload() is a shortcut function that will use a AWS.S3.ManagedUpload() object to handle the file upload. You can achieve the same result as s3.upload() by building your own instance of AWS.S3.ManagedUpload() and calling the send() method on it.

like image 64
spg Avatar answered Oct 31 '22 15:10

spg