Index: openacs-4/packages/ecommerce/www/admin/products/edit-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/products/edit-2.tcl,v diff -u -r1.14 -r1.15 --- openacs-4/packages/ecommerce/www/admin/products/edit-2.tcl 27 Aug 2008 22:48:06 -0000 1.14 +++ openacs-4/packages/ecommerce/www/admin/products/edit-2.tcl 28 Aug 2008 20:58:50 -0000 1.15 @@ -141,25 +141,19 @@ # tmp file will be deleted when the thread ends set tmp_filename ${upload_file.tmpfile} - # copies this temp file into a permanent file -# set perm_filename [file join $full_dirname "product${file_extension}"] - - - # import, copy image & create thumbnails # thumbnails are all jpg files ns_log Notice $upload_file - set upload_status [ecommerce::resource::make_product_images \ + set dirname [ecommerce::resource::make_product_images \ -product_id $product_id \ -tmp_filename ${upload_file.tmpfile} \ -file_extension $file_extension] - if { $upload_status == 0 } { + if { $dirname == 0 } { ad_return_complaint 1 "