Codeception / module-rest

REST module for Codeception
MIT License
53 stars 27 forks source link

Sending of attachment file as array doesn't work #62

Open Nitro-N opened 2 years ago

Nitro-N commented 2 years ago

Variable $value should be used as link $files as $name => &$value https://github.com/Codeception/module-rest/blob/54021377e811c88e65798910de5b506e956e61a6/src/Codeception/Module/REST.php#L761

Naktibalda commented 2 years ago

Thanks for pointing it out, providing FILES style array was broken for 5 years, since https://github.com/Codeception/Codeception/pull/3244

Naktibalda commented 2 years ago

well, not completely broken, but auto-filling missing fields wasn't working and it was easy to workaround by providing all fields.