--- loncom/interface/londocs.pm 2002/07/31 15:23:55 1.5 +++ loncom/interface/londocs.pm 2002/08/01 15:26:23 1.6 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.5 2002/07/31 15:23:55 www Exp $ +# $Id: londocs.pm,v 1.6 2002/08/01 15:26:23 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -55,7 +55,9 @@ sub handler { # upload a file if (($ENV{'form.uploaddoc.filename'}) && ($allowed)) { my $id=time.'_'.$ENV{'user.name'}.'_'.$ENV{'user.domain'}; - my $url=&Apache::lonnet::userfileupload('uploaddoc'); +# this is for a course, not a user, so set coursedoc flag +# probably the only place in the system where this should be "1" + my $url=&Apache::lonnet::userfileupload('uploaddoc',1); if ($url=~/^error\:/) { } else { my $comment=$ENV{'form.comment'};