src/FormField/Upload.php
public function set($fileId = null, $fileName = null, $junk = null)
    {
        $this->setFileId($fileId);

        if (!$fileName) {
            $fileName = $fileId;
        }

        return $this->setInput($fileName, $junk);
    }
public function set($fileId = null, $fileName = null, $junk = null)
    {
        $this->setFileId($fileId);

        if (!$fileName) {
            $fileName = $fileId;
        }

        return $this->setInput($fileName, $junk);
    }
public function set ( $ fileId = null , $ fileName = null , $ junk = null ) { $ this -> setFileId ( $ fileId ) ; if ( ! $ fileName ) { $ fileName = $ fileId ; } return $ this -> setInput ( $ fileName , $ junk ) ; }
Allow to set file id and file name
- fileId will be the file id sent with onDelete callback.
- fileName is the field value display to user.

@param string      $fileId   // Field id for onDelete Callback.
@param string|null $fileName // Field name display to user.
@param mixed       $junk

@return $this|void
Allow to set file id and file name - fileId will be the file id sent with onDelete callback . - fileName is the field value display to user .