applicious_utils 0.1.82 → 0.1.83
Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,8 @@ class AppliciousUploader extends AppliciousCore
|
|
23
23
|
|
24
24
|
@UploadObj.bind 'FileUploaded', (up, file) =>
|
25
25
|
@log 'FileUploaded:', up, file
|
26
|
-
|
26
|
+
token = up.settings.multipart_params.key
|
27
|
+
root.appliciousUploaderFileUploaded up, file, token
|
27
28
|
|
28
29
|
@UploadObj.bind 'Error', (up, error) =>
|
29
30
|
@log 'Error:', up, error
|
@@ -51,7 +51,7 @@ module AppliciousUtils
|
|
51
51
|
var applicious_uploader = new plupload.Uploader({
|
52
52
|
preinit : {
|
53
53
|
UploadFile: function(up, file) {
|
54
|
-
up.settings.multipart_params.key = '#{filename_token}
|
54
|
+
up.settings.multipart_params.key = '#{filename_token}' + file.name.split('.').pop();
|
55
55
|
}
|
56
56
|
},
|
57
57
|
|