示例#1
0
 /**
  * Renome la photo uploader, la place dans le dossier $path puis retourne le nom du fichier modifier
  * @param string $photoFile
  * @param string $path
  * @return string
  */
 protected function traitementPhoto($photoFile, $path)
 {
     extract($photoFile);
     $name = $this->renamePhoto($name);
     $filesystem = Controleur::getFileManager();
     $filesystem->write($path . "/" . $name, Controleur::getFileContent($photoFile["tmp_name"]));
     return $name;
 }