Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[REST] Support simple key-value format for file uploads #3244
When REST module was used with PhpBrowser(or more specifically with Guzzle), file upload could be done in 2 formats: https://github.com/Codeception/Codeception/blob/2.2.1/tests/unit/Codeception/Module/PhpBrowserRestTest.php#L205
$files = [ 'file' => [ 'name' => 'file.txt', 'type' => 'text/plain', 'size' => 9, 'tmp_name' => $tmpFileName, ] ];
$files = [ 'file' => $tmpFileName, ];
The magic happened in in the Guzzle (if I remember correctly).
I added support for the second type of file upload for all frameworks, but I only tested it with ZF2,
Jun 21, 2016
Before, with version 2.1.8, we could pass a
Since version 2.2.2, it seems to be broken. I get an error that the value of key image is invalid.