applicious_utils 0.1.84 → 0.1.85
Sign up to get free protection for your applications and to get access to all the features.
@@ -51,7 +51,16 @@ module AppliciousUtils
|
|
51
51
|
var applicious_uploader = new plupload.Uploader({
|
52
52
|
preinit : {
|
53
53
|
UploadFile: function(up, file) {
|
54
|
-
up.settings.multipart_params
|
54
|
+
up.settings.multipart_params: {
|
55
|
+
'key': '#{filename_token}.' + file.name.split('.').pop(),
|
56
|
+
'Filename': '#{filename_token}.' + file.name.split('.').pop(), // adding this to keep consistency across the runtimes
|
57
|
+
'acl': '#{options[:acl]}',
|
58
|
+
'Content-Type': '#{options[:content_type]}',
|
59
|
+
'success_action_status': '201',
|
60
|
+
'AWSAccessKeyId' : '#{access_key_id}',
|
61
|
+
'policy': '#{policy}',
|
62
|
+
'signature': '#{signature}'
|
63
|
+
},
|
55
64
|
}
|
56
65
|
},
|
57
66
|
|