protected function setFileSize($file)
    {
        $this->fileSize = ! is_null($this->elfinderFilePath) ? $this->getFileSize() : (is_string($file) ? $this->size($file) : $file->getClientSize());
    }
protected function setFileSize($file)
    {
        $this->fileSize = ! is_null($this->elfinderFilePath) ? $this->getFileSize() : (is_string($file) ? $this->size($file) : $file->getClientSize());
    }
protected function setFileSize ( $ file ) { $ this -> fileSize = ! is_null ( $ this -> elfinderFilePath ) ? $ this -> getFileSize ( ) : ( is_string ( $ file ) ? $ this -> size ( $ file ) : $ file -> getClientSize ( ) ) ; }
set file size

@param \Symfony\Component\HttpFoundation\File\UploadedFile|string $file
@return void
set file size