--- loncom/homework/inputtags.pm 2023/02/04 22:38:31 1.356 +++ loncom/homework/inputtags.pm 2023/03/30 23:25:47 1.357 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.356 2023/02/04 22:38:31 raeburn Exp $ +# $Id: inputtags.pm,v 1.357 2023/03/30 23:25:47 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -659,8 +659,13 @@ sub file_selector { $result .= &Apache::lonhtmlcommon::row_title($addfiles); my $constraints; if ($uploadedfiletypes ne '*') { + my $showtypes = $uploadedfiletypes; + if ($showtypes =~ /,/) { + my $conjunc = &mt('or'); + $showtypes =~ s/,([^,]+)$/ $conjunc $1/; + } $constraints = - &mt('Allowed filetypes: [_1]',''.$uploadedfiletypes.'').'
'; + &mt('Allowed filetypes: [_1]',''.$showtypes.'').'
'; } if ($maxfilesize) { $constraints .= &mt('Combined size of all files not to exceed: [_1] MB.',