PHP Classes

Bug with Multiple File Parameters

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  Learn with a PHP OAut...  >  All threads  >  Bug with Multiple File Parameters  >  (Un) Subscribe thread alerts  
Subject:Bug with Multiple File Parameters
Summary:Bug report
Messages:2
Author:Scott Lucas
Date:2017-02-20 12:12:39
 

  1. Bug with Multiple File Parameters   Reply   Report abuse  
Picture of Scott Lucas Scott Lucas - 2017-02-20 12:12:39
Hello,

There is a line in oauth_client.php which needs moving inside the foreach loop. On the version I am using it is line 1622. At the moment if multiple files are uploaded, only the last one is removed from the $post_values array.

Eg:
$post_files[$name] = $file;
}
UnSet($parameters[$name]);

Becomes:
$post_files[$name] = $file;
UnSet($parameters[$name]);
}

Thanks again for the great class,

Kind Regards

Scott

  2. Re: Bug with Multiple File Parameters   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2017-02-20 12:53:02 - In reply to message 1 from Scott Lucas
Yes, you are right. There was a bug there. A fixed version was updated in the site. Just let me know if you find anymore issues.