[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

banghart lon-capa-cvs@mail.lon-capa.org
Sat, 11 Dec 2004 18:10:49 -0000


banghart		Sat Dec 11 13:10:49 2004 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  	Obviates need for javascript setting of enctype that 
  	frequently fails (preventing the uploading of files). 
  	Tested over several forms, and doesn't SEEM to break anything.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.276 loncom/homework/structuretags.pm:1.277
--- loncom/homework/structuretags.pm:1.276	Fri Dec 10 12:54:54 2004
+++ loncom/homework/structuretags.pm	Sat Dec 11 13:10:49 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.276 2004/12/10 17:54:54 albertel Exp $
+# $Id: structuretags.pm,v 1.277 2004/12/11 18:10:49 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -128,7 +128,7 @@
     }
     my $form_tag_start;
     if (!defined($found{'form'})) {
-	$form_tag_start='<form name="lonhomework" method="post" action="';
+	$form_tag_start='<form name="lonhomework" enctype="multipart/form-data" method="post" action="';
 	my $uri=$ENV{'request.uri'};
 	if ($ENV{'request.enc'}) { $uri=&Apache::lonenc::encrypted($uri); }
 	$form_tag_start.=$uri.'">';