Пример #1
0
 public function saveFile($data)
 {
     $file = new Files();
     $src = $file->getSrc($data['image']);
     $name = $file->getName($data['image']);
     $fid = $file->saveFile($src, $name);
     return $fid;
 }