From 7d48bb29b2c5ad60d8a5715faa0156869bf86ffa Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 25 Aug 2015 21:40:17 -0400 Subject: Fix bug when uploading files with cyrilic characters --- app/Model/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Model/File.php') diff --git a/app/Model/File.php b/app/Model/File.php index 3a44fee1..f884e460 100644 --- a/app/Model/File.php +++ b/app/Model/File.php @@ -228,7 +228,7 @@ class File extends Base if ($error == UPLOAD_ERR_OK && $_FILES[$form_name]['size'][$key] > 0) { - $original_filename = basename($_FILES[$form_name]['name'][$key]); + $original_filename = $_FILES[$form_name]['name'][$key]; $uploaded_filename = $_FILES[$form_name]['tmp_name'][$key]; $destination_filename = $this->generatePath($project_id, $task_id, $original_filename); -- cgit v1.2.3