lib/opener/daemons/uploader.rb in opener-daemons-2.3.6 vs lib/opener/daemons/uploader.rb in opener-daemons-2.4.0

- old
+ new

@@ -13,13 +13,14 @@ # # @return [AWS::S3::S3Object] # def upload(identifier, document, metadata = {}) object = create( - "#{identifier}.xml", + "#{SecureRandom.hex}/#{identifier}.xml", document, :metadata => metadata, - :content_type => 'application/xml' + :content_type => 'application/xml', + :acl => :public_read ) return object end