Difference between upload() and putObject() for uploading a file to S3?

The advantage to using AWS SDK upload() over putObject() is as below:

  • If the reported MD5 upon upload completion does not match, it
    retries.
  • If the file size is large enough, it uses multipart upload to upload
    parts in parallel.
  • Retry based on the client’s retry settings.
  • You can use for Progress reporting.
  • Sets the ContentType based on file extension if you do not provide
    it.

Leave a Comment