From 893c94d590f39f83078affd5307a1508ac724292 Mon Sep 17 00:00:00 2001 From: Facundo Farias Date: Thu, 12 Feb 2015 11:28:41 +0100 Subject: [PATCH] Creating aws s3 url with Virtual Hosting --- lib/s3_direct_upload/form_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/s3_direct_upload/form_helper.rb b/lib/s3_direct_upload/form_helper.rb index bb52e3f..1dab254 100644 --- a/lib/s3_direct_upload/form_helper.rb +++ b/lib/s3_direct_upload/form_helper.rb @@ -61,7 +61,7 @@ def key end def url - @options[:url] || "http#{@options[:ssl] ? 's' : ''}://#{@options[:region]}.amazonaws.com/#{@options[:bucket]}/" + @options[:url] || "http#{@options[:ssl] ? 's' : ''}://#{@options[:bucket]}.#{@options[:region]}.amazonaws.com/" end def policy