summaryrefslogtreecommitdiff
path: root/app/Model/File.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-25 21:40:17 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-25 21:40:17 -0400
commit7d48bb29b2c5ad60d8a5715faa0156869bf86ffa (patch)
tree72906efa8086f4d5210b3d123b68db45b1ea568a /app/Model/File.php
parentb144cc81ff57e0daa06f2a288010c384f52af6ec (diff)
Fix bug when uploading files with cyrilic characters
Diffstat (limited to 'app/Model/File.php')
-rw-r--r--app/Model/File.php2
1 files changed, 1 insertions, 1 deletions
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);