-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Heya,
maybe I'm just too stupid but:
Can you use the Kernel Browser to submit files to api endpoints that accept multipart/form submissions?
I know with the API Platform test browser you can do it like this:
$file = new UploadedFile(__DIR__ . '/../../Fixtures/test.xml, 'test.xml');
$response = $client->request('POST', '/bar', [
'headers' => ['Content-Type' => 'multipart/form-data'],
'extra' => [
'parameters' => [
'foo' => 'baz',
],
'files' => [
'file' => $file,
],
],
]);But I have yet to figure out how to do this with THIS browser. Sadly the documentation doesn't really contain anything related to this (the only file related stuff seems to be symfony form related?)
So I was wondering if you can indeed upload files using this and if so how?
Or in case you can't I guess this is a feature request :)
Metadata
Metadata
Assignees
Labels
No labels