laravel-webhook-client
laravel-webhook-client copied to clipboard
WebhookCall looses attachment information from original request
Hi, I noticed this issue after trying to use the attachments while making use of this webhook package.
This issue has already surfaced once in issue 170 and continued in discussion 171, however it was not solved.
I have added log proof of this issue as previously asked on the older thread to indicate the differences between the Laravel request and the webhook call request. Full logs can be found in the attached files.
request()->all().log $this->webhookCall.log
Data from "request()->all()"
'attachment_details' => array ( 0 => array ( 'disposition' => 'inline', ), 1 => array ( 'content_id' => NULL, ), ), 'attachments' => array ( 0 => \Illuminate\Http\UploadedFile::__set_state(array( 'originalName' => 'image0.jpeg', 'mimeType' => 'image/jpeg', 'error' => 0, 'originalPath' => 'image0.jpeg', 'test' => false, 'hashName' => NULL, )), ),
Data from "$this->webhookCall"
'attachment_details' => array ( 0 => array ( 'disposition' => 'inline', ), 1 => array ( 'content_id' => NULL, ), ),
Code used to log this data
\Log::info('Request Data');
\Log::info(request()->all());
\Log::info('Webhook Call Data');
\Log::info(json_decode($this->webhookCall, true));