applicious_utils 0.1.79 → 0.1.80
Sign up to get free protection for your applications and to get access to all the features.
@@ -44,10 +44,11 @@ module AppliciousUtils
|
|
44
44
|
|
45
45
|
out << javascript_tag("$(function() {
|
46
46
|
|
47
|
-
function appliciousGetFileExtension(filename)
|
48
|
-
{
|
49
|
-
|
50
|
-
}
|
47
|
+
//function appliciousGetFileExtension(filename)
|
48
|
+
//{
|
49
|
+
// return filename.split('.').pop();
|
50
|
+
//}
|
51
|
+
//extension = appliciousGetFileExtension()
|
51
52
|
|
52
53
|
/*
|
53
54
|
* S3 Uploader instance
|
@@ -66,7 +67,7 @@ module AppliciousUtils
|
|
66
67
|
multi_selection: false,
|
67
68
|
multipart: true,
|
68
69
|
multipart_params: {
|
69
|
-
'key': 'uploads/#{filename_token} + '_' + ${filename},
|
70
|
+
'key': 'uploads/#{filename_token}' + '_' + ${filename},
|
70
71
|
'Filename': 'uploads/#{filename_token}' + '_' + ${filename}, // adding this to keep consistency across the runtimes
|
71
72
|
'acl': '#{options[:acl]}',
|
72
73
|
'Content-Type': '#{options[:content_type]}',
|