--- loncom/publisher/lonupload.pm 2008/07/18 03:27:48 1.38
+++ loncom/publisher/lonupload.pm 2008/12/12 02:42:49 1.38.2.1
@@ -2,7 +2,7 @@
# The LearningOnline Network with CAPA
# Handler to upload files into construction space
#
-# $Id: lonupload.pm,v 1.38 2008/07/18 03:27:48 raeburn Exp $
+# $Id: lonupload.pm,v 1.38.2.1 2008/12/12 02:42:49 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -98,10 +98,11 @@ sub phaseone {
''.
''.&mt('Save uploaded file as ').
- "/priv/$uname/".
+ '" />'.&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') {