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:
parent
74b3c37b61
commit
a15d8221ca
|
@ -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.upload_area, createDOM( "input", { "name": "file_id", "id": "file_id", "type": "hidden", "value": "new" } ) );
|
||||||
appendChildNodes( this.div, this.upload_area );
|
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 ) {
|
connect( this.upload_button, "onclick", function ( event ) {
|
||||||
self.upload_started();
|
self.upload_started();
|
||||||
} );
|
} );
|
||||||
|
@ -3692,6 +3695,7 @@ Upload_pulldown.prototype.update_file_id = function ( result ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Upload_pulldown.prototype.upload_started = function ( file_id ) {
|
Upload_pulldown.prototype.upload_started = function ( file_id ) {
|
||||||
|
this.ephemeral = false;
|
||||||
this.uploading = true;
|
this.uploading = true;
|
||||||
var filename = base_upload_filename();
|
var filename = base_upload_filename();
|
||||||
|
|
||||||
|
|
Reference in New Issue