I need help with a put request with the laravel 8 guzzle. I'm uploading a zip file. It is returning error 406.
With postman it's working fine. Returns 200. If anyone knows how to resolve help me with this please.
Thanks.
follow the code:
$response = Http::withToken($token)->withHeaders([
"Content-Type" => "application/json",
"Accept" => "application/zip",
])->attach(
'inputFile', $zip, 'zip'
)->put($endPoint);
Log::alert($response); dd($response->status());
With postman it's working fine, returns 200. Here:

