[Fusionforge-commits] r13628 - branches/Branch_5_1/src/common/docman/actions

Alain Peyrat aljeux at fusionforge.org
Tue Jun 28 18:51:07 CEST 2011


Author: aljeux
Date: 2011-06-28 18:51:07 +0200 (Tue, 28 Jun 2011)
New Revision: 13628

Modified:
   branches/Branch_5_1/src/common/docman/actions/addfile.php
Log:
Handle upload too large.

Modified: branches/Branch_5_1/src/common/docman/actions/addfile.php
===================================================================
--- branches/Branch_5_1/src/common/docman/actions/addfile.php	2011-06-28 16:51:01 UTC (rev 13627)
+++ branches/Branch_5_1/src/common/docman/actions/addfile.php	2011-06-28 16:51:07 UTC (rev 13628)
@@ -42,6 +42,10 @@
 $type = getStringFromRequest('type');
 $name = getStringFromRequest('name');
 
+if ($error_msg) {
+	session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode($error_msg));
+}
+
 if (!$doc_group || $doc_group == 100) {
 	//cannot add a doc unless an appropriate group is provided
 	$return_msg = _('No valid Document Directory was selected.');




More information about the Fusionforge-commits mailing list