public function getValue()
    {
        $file = $this->getFile();

        if($file instanceof UploadedFile) {
            return $file->getOriginalName();
        }

        if(is_array($file) && $file[0] instanceof UploadedFile) {
            return $file[0]->getOriginalName();
        }

        return null;
    }
public function getValue()
    {
        $file = $this->getFile();

        if($file instanceof UploadedFile) {
            return $file->getOriginalName();
        }

        if(is_array($file) && $file[0] instanceof UploadedFile) {
            return $file[0]->getOriginalName();
        }

        return null;
    }
public function getValue ( ) { $ file = $ this -> getFile ( ) ; if ( $ file instanceof UploadedFile ) { return $ file -> getOriginalName ( ) ; } if ( is_array ( $ file ) && $ file [ 0 ] instanceof UploadedFile ) { return $ file [ 0 ] -> getOriginalName ( ) ; } return null ; }
get original name of an uploaded file associated with this element
if attribute multiple is set the name of the first file is returned

@return string
get original name of an uploaded file associated with this element if attribute multiple is set the name of the first file is returned