public function setFileUpload(UploadedFile $file = null)
    {
        $propertyName = $this->getFileUploadPropertyName(__FUNCTION__);

        unset($this->fileUploads[$propertyName]);
        if ($file instanceof UploadedFile) {
            $this->fileUploads[$propertyName] = $file;
        }
    }
public function setFileUpload(UploadedFile $file = null)
    {
        $propertyName = $this->getFileUploadPropertyName(__FUNCTION__);

        unset($this->fileUploads[$propertyName]);
        if ($file instanceof UploadedFile) {
            $this->fileUploads[$propertyName] = $file;
        }
    }
public function setFileUpload ( UploadedFile $ file = null ) { $ propertyName = $ this -> getFileUploadPropertyName ( __FUNCTION__ ) ; unset ( $ this -> fileUploads [ $ propertyName ] ) ; if ( $ file instanceof UploadedFile ) { $ this -> fileUploads [ $ propertyName ] = $ file ; } }
Sets the uploaded file.

@param UploadedFile|null $file
Sets the uploaded file .