applicious_utils 0.1.79 → 0.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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]}',
|