jeudi 15 avril 2021

API CALL ERROR curl_setopt_array(): Cannot represent a stream of type Output as a STDIO FILE*

I keep getting this error when I try to make an API call on my laravel App. v8

$uploadedImage = $request->image->store('watermark');
$photo = fopen($uploadedImage, 'r');

$response = Http::withHeaders([
        'content-type' => 'multipart/form-data',
    ])->withOptions([
        'debug' => true,
    ])->attach(
        'image', $photo, $uploadedImage
    )->post('http://dummyapiwebsite.com/');

dd($response)



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3wZC58s
via IFTTT

Aucun commentaire:

Enregistrer un commentaire