Level 34
@nafeeur10 based on your error, there is something wrong with the getimagesize.
Can you expand more the error message?
Also, check the route/controller where you are passing this request in which the getimagesize is having an error.
Trying to upload file:
private function getOptions($data = null)
{
$options['multipart'] = [
[
'name' => 'name',
'contents' => $data['name']
],
[
'name' => 'description',
'contents' => $data['description']
],
[
'name' => 'is_published',
'contents' => $data['is_published']
],
[
'name' => 'thumb',
'contents' => base64_encode(file_get_contents($data['thumb']))
]
];
return $options;
}
From where I am calling this, it is giving me data like this:
dd($this->getOptions($data));
Image of given data: https://ibb.co/9Tk38Vh
URL is giving me correct URL. But why internal server error!!
dd($this->client->request(strtoupper($method), $this->makeUrl($uri), $this->getOptions($data)));
What could be the problem?
Please or to participate in this conversation.