Permalink
Browse files

add IE8 compatibility (hopefully IE8+)

  • Loading branch information...
1 parent 6c0dbbf commit b9d4e54e3a27780ec340afba8bf2df8d60e14990 Wayne committed Nov 2, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −1 app/assets/javascripts/s3_direct_upload.js.coffee
  2. +3 −1 lib/s3_direct_upload/form_helper.rb
@@ -24,7 +24,7 @@ $.fn.S3Uploader = (options) ->
current_files = []
setUploadForm = ->
- $uploadForm.fileupload
+ $uploadForm.find("input:file").fileupload
add: (e, data) ->
current_files.push data
@@ -44,6 +44,7 @@ def fields
:policy => policy,
:signature => signature,
"AWSAccessKeyId" => @options[:aws_access_key_id],
+ success_action_status: "200"
}
end
@@ -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

0 comments on commit b9d4e54

Please sign in to comment.