Difference between #2 and #3 of
Save uploaded file with any filename characters

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
[...]
1 0
3 followers
Viewed: 20 235 times
Version: 1.1
Category: How-tos
Last updated by: Kostas Apazidis (KonApaz)
Created on: May 24, 2014
Last updated: 10 years ago
Update Article

Revisions

View all history