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

Revision #3 has been created by Kostas Apazidis (KonApaz) on May 25, 2014, 12:05:27 AM with the memo:

typo
« previous (#2)

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: 19 662 times
Version: 1.1
Category: How-tos
Last updated by: Kostas Apazidis (KonApaz)
Created on: May 24, 2014
Last updated: 9 years ago
Update Article

Revisions

View all history