[Fusionforge-commits] r13771 - trunk/src/common/docman/actions

Alain Peyrat aljeux at fusionforge.org
Wed Jul 13 15:34:32 CEST 2011


Author: aljeux
Date: 2011-07-13 15:34:32 +0200 (Wed, 13 Jul 2011)
New Revision: 13771

Modified:
   trunk/src/common/docman/actions/editfile.php
Log:
Fix mime issue when updating a document

Modified: trunk/src/common/docman/actions/editfile.php
===================================================================
--- trunk/src/common/docman/actions/editfile.php	2011-07-13 13:25:17 UTC (rev 13770)
+++ trunk/src/common/docman/actions/editfile.php	2011-07-13 13:34:32 UTC (rev 13771)
@@ -76,9 +76,9 @@
 	$filename = $uploaded_data['name'];
 	if (function_exists('finfo_open')) {
 		$finfo = finfo_open(FILEINFO_MIME_TYPE);
-		$uploaded_data_type = finfo_file($finfo, $uploaded_data['tmp_name']);
+		$filetype = finfo_file($finfo, $uploaded_data['tmp_name']);
 	} else {
-		$uploaded_data_type = $uploaded_data['type'];
+		$filetype = $uploaded_data['type'];
 	}
 } elseif ($file_url) {
 	$data = '';




More information about the Fusionforge-commits mailing list