Open kbond opened 2 years ago
Currently, uploading files is a bit verbose:
$browser->post('/endpoint', ['files' => [new UploadedFile($realpath, $name, test: true)]);
It would be better if you could do:
$browser->post('/endpoint', ['files' => [$realpath]);
And HttpOptions auto-converts file paths's to UploadedFile's.
HttpOptions
UploadedFile
Currently, uploading files is a bit verbose:
It would be better if you could do:
And
HttpOptions
auto-converts file paths's toUploadedFile
's.