public function uploadMultiple($files, $handler, $path = null)
    {
        $return = array(
            'errors' => array(),
            'transferred' => array()
        );

        if (!gplcart_file_multi_upload($files)) {
            return $return;
        }

        foreach ($files as $key => $file) {

            $result = $this->upload($file, $handler, $path);

            if ($result === true) {
                $return['transferred'][$key] = $this->getTransferred(true);
            } else {
                $return['errors'][$key] = (string) $result;
            }
        }

        return $return;
    }
public function uploadMultiple($files, $handler, $path = null)
    {
        $return = array(
            'errors' => array(),
            'transferred' => array()
        );

        if (!gplcart_file_multi_upload($files)) {
            return $return;
        }

        foreach ($files as $key => $file) {

            $result = $this->upload($file, $handler, $path);

            if ($result === true) {
                $return['transferred'][$key] = $this->getTransferred(true);
            } else {
                $return['errors'][$key] = (string) $result;
            }
        }

        return $return;
    }
public function uploadMultiple ( $ files , $ handler , $ path = null ) { $ return = array ( 'errors' => array ( ) , 'transferred' => array ( ) ) ; if ( ! gplcart_file_multi_upload ( $ files ) ) { return $ return ; } foreach ( $ files as $ key => $ file ) { $ result = $ this -> upload ( $ file , $ handler , $ path ) ; if ( $ result === true ) { $ return [ 'transferred' ] [ $ key ] = $ this -> getTransferred ( true ) ; } else { $ return [ 'errors' ] [ $ key ] = ( string ) $ result ; } } return $ return ; }
Multiple file upload
@param array $files
@param null|string|false $handler
@param string|null $path
@return array
Multiple file upload