Пример #1
0
 /**
  * Get upload file object for a given model
  *
  * @param  Jam_Model $model
  * @return Upload_File
  */
 public function upload_file(Jam_Model $model)
 {
     $upload_file = new Upload_File($this->server, $this->path($model));
     if ($this->transformations) {
         $upload_file->transformations($this->transformations);
     }
     if ($this->thumbnails) {
         $upload_file->thumbnails($this->thumbnails);
     }
     return $upload_file;
 }