witten
/
luminotes
Archived
1
0
Fork 0

Fixed a bug in which the new upload code didn't work in IE due to IE not noticing that enctype was set to multipart/form-data.

This commit is contained in:
Dan Helfman 2009-03-20 15:37:14 -07:00
parent 74b3c37b61
commit a15d8221ca
1 changed files with 4 additions and 0 deletions

View File

@ -3661,6 +3661,9 @@ function Upload_pulldown( wiki, notebook_id, invoker, editor, link, anchor, ephe
appendChildNodes( this.upload_area, createDOM( "input", { "name": "file_id", "id": "file_id", "type": "hidden", "value": "new" } ) );
appendChildNodes( this.div, this.upload_area );
// for the benefit of Internet Explorer
getElement( "upload_form" ).encoding = "multipart/form-data";
connect( this.upload_button, "onclick", function ( event ) {
self.upload_started();
} );
@ -3692,6 +3695,7 @@ Upload_pulldown.prototype.update_file_id = function ( result ) {
}
Upload_pulldown.prototype.upload_started = function ( file_id ) {
this.ephemeral = false;
this.uploading = true;
var filename = base_upload_filename();