--- loncom/homework/essayresponse.pm	2004/10/30 23:59:00	1.45
+++ loncom/homework/essayresponse.pm	2004/11/01 22:51:48	1.46
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.45 2004/10/30 23:59:00 banghart Exp $
+# $Id: essayresponse.pm,v 1.46 2004/11/01 22:51:48 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -147,7 +147,8 @@ sub end_essayresponse {
 			&Apache::lonxml::whichuser();
                     foreach (@submitted_files) {
                         my $file = $_;
-                        $Apache::lonhomework::results{"resource.$domain.$crsid.$name.$file"}='true';
+			&Apache::lonnet::put('file_permissions',
+					 { $dsymb.$crsid => $file },$domain,$name);
                     }
                     $uploadedflag=1;
     	        }