Skip to content

Commit

Permalink
add IE8 compatibility (hopefully IE8+)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne committed Nov 2, 2012
1 parent 6c0dbbf commit b9d4e54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/s3_direct_upload.js.coffee
Expand Up @@ -24,7 +24,7 @@ $.fn.S3Uploader = (options) ->
current_files = []

setUploadForm = ->
$uploadForm.fileupload
$uploadForm.find("input:file").fileupload

add: (e, data) ->
current_files.push data
Expand Down
4 changes: 3 additions & 1 deletion lib/s3_direct_upload/form_helper.rb
Expand Up @@ -44,6 +44,7 @@ def fields
:policy => policy,
:signature => signature,
"AWSAccessKeyId" => @options[:aws_access_key_id],
success_action_status: "200"
}
end

Expand All @@ -68,7 +69,8 @@ def policy_data
["content-length-range", 0, @options[:max_file_size]],
["starts-with","$Content-Type",""],
{bucket: @options[:bucket]},
{acl: @options[:acl]}
{acl: @options[:acl]},
{success_action_status: "200"}
]
}
end
Expand Down

0 comments on commit b9d4e54

Please sign in to comment.