public function init()
    {
        parent::init(); // TODO: Change the autogenerated stub
        if (!$this->keepFileName) {
            $this->filename = $this->generateNewFilename();
        }
        if (empty($this->uploadDirectory)) {
            $this->uploadDirectory = Media::getCurrentDirectory();
        }
    }
public function init()
    {
        parent::init(); // TODO: Change the autogenerated stub
        if (!$this->keepFileName) {
            $this->filename = $this->generateNewFilename();
        }
        if (empty($this->uploadDirectory)) {
            $this->uploadDirectory = Media::getCurrentDirectory();
        }
    }
public function init ( ) { parent :: init ( ) ; // TODO: Change the autogenerated stub if ( ! $ this -> keepFileName ) { $ this -> filename = $ this -> generateNewFilename ( ) ; } if ( empty ( $ this -> uploadDirectory ) ) { $ this -> uploadDirectory = Media :: getCurrentDirectory ( ) ; } }
Setup default options
if user does not wanna define
Setup default options if user does not wanna define