--- loncom/publisher/lonupload.pm 2008/11/18 19:14:40 1.40
+++ loncom/publisher/lonupload.pm 2008/12/12 02:32:27 1.42
@@ -2,7 +2,7 @@
# The LearningOnline Network with CAPA
# Handler to upload files into construction space
#
-# $Id: lonupload.pm,v 1.40 2008/11/18 19:14:40 jms Exp $
+# $Id: lonupload.pm,v 1.42 2008/12/12 02:32:27 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -184,10 +184,11 @@ sub phaseone {
''.
''.&mt('Save uploaded file as ').
+ '" />'.&mt('Save uploaded file as [_1]',
"/priv/$uname/".
'
'.
+ '" />').
+ '
'.
'
'.&mt('Choose file type:').'
';
} elsif ($fn=~/\.(\w+)$/ &&
!defined(&Apache::loncommon::fileembstyle($1))) {
$result .= &mt('File [_1] could not be copied.',
''.$fn.' ').
- '
'.
+ ''.
&mt('The extension on this file is not recognized by LON-CAPA.').
- '
';
+ '';
} elsif (-d $target) {
$result .= &mt('File [_1] could not be copied.',
''.$fn.'').
- '
'.
+ ''.
&mt('The target is an existing directory.').
- '
';
+ '';
} elsif (copy($source,$target)) {
chmod(0660, $target); # Set permissions to rw-rw---.
if ($mode eq 'testbank' || $mode eq 'imsimport') {