Core/Toolbox/IO/Upload.php
/**
     * Same as php's core move_uploaded_file extended with optional destination file exists check.
     *
     * @throws FileException when exists check is requested and destination already exists
     *
     * @return boolean
     */
Same as php's core move_uploaded_file extended with optional destination file exists check.
@throws FileException when exists check is requested and destination already exists

@return boolean
Same as php ' s core move_uploaded_file extended with optional destination file exists check . @throws FileException when exists check is requested and destination already exists @return boolean
public function moveFile(): bool
    {
        if ($this->check_exists == true && file_exists($this->destination)) {
            Throw new FileException(sprintf('Destinationfile "%s" already exits.', $this->destination));
        }
        return move_uploaded_file($this->filename, $this->destination);
    }
public function moveFile ( ) : bool { if ( $ this -> check_exists == true && file_exists ( $ this -> destination ) ) { Throw new FileException ( sprintf ( 'Destinationfile "%s" already exits.' , $ this -> destination ) ) ; } return move_uploaded_file ( $ this -> filename , $ this -> destination ) ; }
Same as php's core move_uploaded_file extended with optional destination file exists check.
Same as php ' s core move_uploaded_file extended with optional destination file exists check .