Index: openacs-4/packages/wp-slim/www/attach.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/wp-slim/www/attach.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/wp-slim/www/attach.tcl 15 Nov 2001 01:47:13 -0000 1.4 +++ openacs-4/packages/wp-slim/www/attach.tcl 19 Nov 2001 19:34:23 -0000 1.5 @@ -57,8 +57,18 @@ set revision_id [cr_import_content -image_type cr_wp_image_attachment -other_type cr_wp_file_attachment \ $slide_item_id $tmp_filename $tmp_size $mime_type $client_filename] } - cr_set_imported_content_live -image_sql [db_map image_data] -other_sql [db_map file_data] \ - $mime_type $revision_id + cr_set_imported_content_live -image_sql [db_map image_data] -other_sql [db_map file_data] $mime_type $revision_id +} on_error { + # most likely a duplicate name, double click, or non-image file uploaded as an inline image. + + ad_return_complaint 1 "There was an error trying to add your content. Most likely causes you've +

Here is the actual error message:

$errmsg
" + + return } + ad_returnredirect edit-slide?[export_url_vars slide_item_id pres_item_id]