Merge branch 'MDL-27169_master' of git://github.com/stronk7/moodle
authorSam Hemelryk <sam@moodle.com>
Thu, 23 Jun 2011 02:43:57 +0000 (10:43 +0800)
committerSam Hemelryk <sam@moodle.com>
Thu, 23 Jun 2011 02:43:57 +0000 (10:43 +0800)
repository/filepicker.js

index 9a137dd..5d2fa6d 100644 (file)
@@ -1122,7 +1122,7 @@ M.core_filepicker.init = function(Y, options) {
             this.print_header();
             var id = data.upload.id+'_'+client_id;
             var str = '<div id="'+id+'_div" class="fp-upload-form mdl-align">';
-            str += '<form id="'+id+'" method="POST">';
+            str += '<form id="'+id+'" enctype="multipart/form-data" method="POST">';
             str += '<table width="100%">';
             str += '<tr><td class="mdl-right">';
             str += '<label for="'+id+'_file">'+data.upload.label+': </label></td>';