--- loncom/homework/essayresponse.pm 2005/05/20 18:53:53 1.67 +++ loncom/homework/essayresponse.pm 2005/09/19 20:41:01 1.68 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # essay (ungraded) style responses # -# $Id: essayresponse.pm,v 1.67 2005/05/20 18:53:53 albertel Exp $ +# $Id: essayresponse.pm,v 1.68 2005/09/19 20:41:01 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -164,7 +164,12 @@ sub file_submission { if ($files =~ /[^\s]/) { $files =~s/,$//; $Apache::lonhomework::results{"resource.$part.$id.$which"}=$files; - my @submitted_files = split(/,/,$files); + + my @submitted_files = ($files); + if ( $which eq 'portfiles' ) { + @submitted_files = split(/,/,$files); + } + my $uploadedfiletypes= &Apache::lonnet::EXT("resource.$part".'_'."$id.uploadedfiletypes"); if ($uploadedfiletypes) { $uploadedfiletypes=~s/[^\w\,]//g;