--- loncom/interface/portfolio.pm	2004/10/25 13:04:58	1.51
+++ loncom/interface/portfolio.pm	2004/10/25 17:00:25	1.52
@@ -436,7 +436,7 @@ sub handler {
     $r->rflush();
     &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
                                             ['selectfile','currentpath',
-					     'currentfile','action','fieldname']);
+					     'currentfile','action','fieldname','mode']);
 	if (($ENV{'form.storeupl'} eq 'Upload') & (!$ENV{'form.uploaddoc.filename'})){
    	    $r->print('<font color="red"> No file was selected to upload.'.
    	            'To upload a file, click <strong>Browse...</strong>'.