Index: openacs-4/packages/simulation/www/citybuild/object-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/www/citybuild/object-edit.tcl,v diff -u -r1.24 -r1.24.2.1 --- openacs-4/packages/simulation/www/citybuild/object-edit.tcl 1 Mar 2004 11:06:52 -0000 1.24 +++ openacs-4/packages/simulation/www/citybuild/object-edit.tcl 30 Nov 2004 21:48:08 -0000 1.24.2.1 @@ -556,6 +556,10 @@ lappend attributes [list $attribute_name $value] } + if { [exists_and_not_null content_file] && ![simulation::ui::forms::document_upload::check_mime -document_file $content_file] } { + simulation::ui::forms::document_upload::add_mime -document_file $content_file + } + } -new_data { # TODO B: For now, assume we are always using this to create global objects -- LARS: Not sure what to do on this