version 1.356, 2023/02/04 22:38:31
|
version 1.357, 2023/03/30 23:25:47
|
Line 659 sub file_selector {
|
Line 659 sub file_selector {
|
$result .= &Apache::lonhtmlcommon::row_title($addfiles); |
$result .= &Apache::lonhtmlcommon::row_title($addfiles); |
my $constraints; |
my $constraints; |
if ($uploadedfiletypes ne '*') { |
if ($uploadedfiletypes ne '*') { |
|
my $showtypes = $uploadedfiletypes; |
|
if ($showtypes =~ /,/) { |
|
my $conjunc = &mt('or'); |
|
$showtypes =~ s/,([^,]+)$/ $conjunc $1/; |
|
} |
$constraints = |
$constraints = |
&mt('Allowed filetypes: [_1]','<b>'.$uploadedfiletypes.'</b>').'<br />'; |
&mt('Allowed filetypes: [_1]','<b>'.$showtypes.'</b>').'<br />'; |
} |
} |
if ($maxfilesize) { |
if ($maxfilesize) { |
$constraints .= &mt('Combined size of all files not to exceed: [_1] MB.', |
$constraints .= &mt('Combined size of all files not to exceed: [_1] MB.', |