--- loncom/publisher/lonupload.pm 2007/05/02 01:34:23 1.35
+++ loncom/publisher/lonupload.pm 2008/01/15 16:04:38 1.36
@@ -2,7 +2,7 @@
# The LearningOnline Network with CAPA
# Handler to upload files into construction space
#
-# $Id: lonupload.pm,v 1.35 2007/05/02 01:34:23 albertel Exp $
+# $Id: lonupload.pm,v 1.36 2008/01/15 16:04:38 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -158,15 +158,22 @@ sub phasetwo {
&Debug($r, "URL is now ".$url);
my $datatoken=$env{'form.datatoken'};
if (($fn) && ($datatoken)) {
- if ((-e $target) && ($env{'form.override'} ne 'Yes')) {
+ if ($env{'form.cancel'}) {
+ my $source=$r->dir_config('lonDaemons').'/tmp/'.$datatoken.'.tmp';
+ my $dirpath=$path.'/';
+ $dirpath=~s/\/+/\//g;
+ $r->print(&mt('Upload cancelled.').'
'.
+ &mt('Back to Directory').'');
+ } elsif ((-e $target) && (!$env{'form.override'})) {
$r->print('