```ruby
class S3FileUploader
  def self.save_file_to_s3(filename, csv)
    connection = Fog::Storage.new(
      provider: "AWS",
      region: ENV["AWS_REGION"],
      aws_access_key_id: ENV["AWS_ACCESS_KEY_ID"],
      aws_secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"],
    )

    directory = connection.directories.get(ENV["AWS_S3_BUCKET_NAME"])

    directory.files.create(
      key: filename,
      body: csv,
      public: true,
    )
  end
end
```

Remove public=>true from upload parameters
user
```ruby
class S3FileUploader
  def self.save_file_to_s3(filename, csv)
    connection = Fog::Storage.new(
      provider: "AWS",
      region: ENV["AWS_REGION"],
      aws_access_key_id: ENV["AWS_ACCESS_KEY_ID"],
      aws_secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"],
    )

    directory = connection.directories.get(ENV["AWS_S3_BUCKET_NAME"])

    directory.files.create(
      key: filename,
      body: csv,
    )
  end
end
```
assistant