-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Closed
Description
- Laravel Version: 8.44.0
- PHP Version: 8.0.6
- Database Driver & Version: 5.7
Description:
Http client send file with error: A 'contents' key is required.
Ref: Http Client multipart request
Steps To Reproduce:
$result = Http::attach(
'doc', $xml->get(), $xml->getClientOriginalName()
)->post($api, [
'token' => 'abc',
// 'xpath' => ['/entry/title', '/entry/'author'], // Will be occured error: A 'contents' key is required.
'xpath' => '/entry/title', // Will be OK.
])->throw()->json();
Is the post file can not with array params? Thanks very much!
flosejoltee, Temepest74, Patkaniec22, jbardnz, gustavooacto and 4 more
Metadata
Metadata
Assignees
Labels
No labels