apaternina
apaternina

Reputation: 431

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

Upvotes: 10

Views: 6415

Answers (1)

spg
spg

Reputation: 9847

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.

Upvotes: 12

Related Questions