original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Multiple file upload
  @param array $files
  @param null|string|false $handler
  @param string|null $path
  @return array
docstring_tokens: Multiple file upload