Closed christeredvartsen closed 8 years ago
The Given I attach :path to the request as :partName step does not work as expected as it sets the part as a string instead of a file resource:
Given I attach :path to the request as :partName
Instead of:
$part = [ 'name' => $partName, 'contents' => file_get_contents($path), ];
it should be doing this:
$part = [ 'name' => $partName, 'contents' => fopen($path, 'r'), 'filename' => basename($path), ];
The
Given I attach :path to the request as :partName
step does not work as expected as it sets the part as a string instead of a file resource:Instead of:
it should be doing this: