Skip to content
This repository was archived by the owner on Oct 6, 2020. It is now read-only.

Commit a01d478

Browse files
author
Martin Gregory
committed
Fixed passing out filename, contenttype
1 parent 7c870a0 commit a01d478

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

flex_src/src/s3_upload.mxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
//selectButton.visible = true;
162162
userMessage.text = "Upload complete!";
163163
trace(options.onSuccessCall);
164-
ExternalInterface.call(options.onSuccessCall, options.FileName);
164+
ExternalInterface.call(options.onSuccessCall, options.FileName, options.FileSize, options.ContentType);
165165
trace(event);
166166
});
167167
-3 Bytes
Binary file not shown.

lib/s3_swf_upload/view_helpers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ def s3_swf_upload_tag(options = {})
2828
width: #{width},
2929
height: #{height},
3030
initialMessage: '#{initial_message}',
31-
onSuccess: function(filename, filesize){
31+
onSuccess: function(filename, filesize, contenttype){
3232
#{success}
3333
},
3434
onFailed: function(status){
3535
#{failed}
3636
},
37-
onFileSelected: function(filename, size){
37+
onFileSelected: function(filename, size, contenttype){
3838
#{selected}
3939
},
4040
});

0 commit comments

Comments
 (0)