thorsson_carrierwave 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/carrierwave.rb +1 -1
- data/lib/carrierwave/storage/right_s3.rb +1 -5
- metadata +2 -2
data/lib/carrierwave.rb
CHANGED
@@ -109,11 +109,7 @@ module CarrierWave
|
|
109
109
|
|
110
110
|
def store(file)
|
111
111
|
# File.open('/home/ivan/output', 'w') {|f| f.write(@path) }
|
112
|
-
connection.put(bucket, @path, file.read,
|
113
|
-
{'x-amz-acl' => @uploader.s3_access_policy,
|
114
|
-
'x-amz-content-type' => @uploader.s3_headers['Content-Type'],
|
115
|
-
'content-type' => @uploader.s3_headers['Content-Type']}#file.content_type
|
116
|
-
)
|
112
|
+
connection.put(bucket, @path, file.read,headers)
|
117
113
|
end
|
118
114
|
|
119
115
|
private
|