Permalink
Browse files

MDL-27169 filepicker - add explicit enctype to the js upload form. Cr…

…edit goes to J Ross Nicoll, thanks!
  • Loading branch information...
stronk7 committed Jun 22, 2011
1 parent 3552484 commit a8f3f4ccf196e14c3d16f632d0af73664ec1a10e
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/filepicker.js
View
@@ -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>';

0 comments on commit a8f3f4c

Please sign in to comment.