MDL-27169 filepicker - add explicit enctype to the js upload form. Credit goes to J Ross Nicoll, thanks!

This commit is contained in:
Eloy Lafuente (stronk7)
2011-06-22 19:30:57 +02:00
parent 3552484b91
commit a8f3f4ccf1
+1 -1
View 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>';