Skip to content

aws-sdk-s3 1.197.0+ deprecation warnings for upload_file, download_file, upload_stream methods #190

@andreas-venturini

Description

@andreas-venturini

Summary

Starting with aws-sdk-s3 version 1.197.0, the gem shows deprecation warnings for methods used by carrierwave-aws, causing noise in production logs.

Deprecation Warning

#################### DEPRECATION WARNING ####################
Called deprecated method upload_file of Aws::S3::Object. Use Aws::S3::TransferManager#upload_file instead.
Method upload_file will be removed in next major version.
#############################################################
/app/vendor/bundle/ruby/3.4.0/gems/carrierwave-aws-1.6.0/lib/carrierwave/storage/aws_file.rb:61:in 'CarrierWave::Storage::AWSFile#store'

Affected Methods

  • upload_file - should use Aws::S3::TransferManager#upload_file
  • download_file - should use Aws::S3::TransferManager#download_file
  • upload_stream - should use Aws::S3::TransferManager#upload_stream

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions