From f817dc7606068f726b676de0afd8ea5aa274e7f1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 9 Sep 2014 16:30:29 +0000 Subject: [PATCH] fixed IE 11 names almost all files "blob" --- etemplate/inc/class.etemplate_widget_file.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etemplate/inc/class.etemplate_widget_file.inc.php b/etemplate/inc/class.etemplate_widget_file.inc.php index 074ce40e51..4e5e885696 100644 --- a/etemplate/inc/class.etemplate_widget_file.inc.php +++ b/etemplate/inc/class.etemplate_widget_file.inc.php @@ -113,7 +113,7 @@ class etemplate_widget_file extends etemplate_widget protected static function process_uploaded_file($field, Array &$file, $mime, Array &$file_data) { // Chunks get mangled a little - if($file['name'] == 'blob' && $file['type'] == 'application/octet-stream') + if($file['name'] == 'blob') { $file['name'] = $_POST['resumableFilename']; $file['type'] = $_POST['resumableType']; @@ -133,7 +133,7 @@ class etemplate_widget_file extends etemplate_widget return false; } } - + // Resumable / chunked uploads // init the destination file (format .part<#chunk> // the file is stored in a temporary directory @@ -149,7 +149,7 @@ class etemplate_widget_file extends etemplate_widget // move the temporary file if (!move_uploaded_file($file['tmp_name'], $dest_file)) { - $file_date[$file['name']] = 'Error saving (move_uploaded_file) chunk '.(int)$_POST['resumableChunkNumber'].' for file '.$_POST['resumableFilename']; + $file_data[$file['name']] = 'Error saving (move_uploaded_file) chunk '.(int)$_POST['resumableChunkNumber'].' for file '.$_POST['resumableFilename']; } else {