lib/fastlane/plugin/polidea/actions/s3.rb in fastlane-plugin-polidea-0.6.1 vs lib/fastlane/plugin/polidea/actions/s3.rb in fastlane-plugin-polidea-0.6.2
- old
+ new
@@ -334,10 +334,11 @@
end
s3_client
end
def self.upload_file(bucket, file_name, file_data, acl)
- obj = bucket.objects.create(file_name, file_data, acl: acl)
+ puts file_name, content_type_for_file(file_name)
+ obj = bucket.objects.create(file_name, file_data, acl: acl, content_type: content_type_for_file(file_name))
# When you enable versioning on a S3 bucket,
# writing to an object will create an object version
# instead of replacing the existing object.
# http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/S3/ObjectVersion.html