Changes
Title
unchanged
Save uploaded file with any filename characters
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
Save, uploaded, file, any, characters, filename
Content
changed
[...]
return true;
}
return false;
}
public function getFile($id) {
$encodedFile = iconv('UTF-8', 'greek//TRANSLIT//IGNORE', $this->name_file);
$path = 'images/' . $encodedFile;[...]
}
$this->render('create', array('model'=>$model));
}
public function actionView($id) {
$this->loadModel($id)->getFile();
}
```
The left code is similar to this wiki[...]