How to get the error, when FileUpload result is NULL?
I have a custom header action defined in
table()
via Action::make->->form([FileUpload::make()])
. I also have ->action(function (array $data): void {...}
$data
is an array of the custom elements, like $data['priceList']
for the FileUpload. In my case this $data['priceList']
is a string representing the Amazon S3 path to the file, like aaa\myfile.csv
.
The problem is that in some cases this $data['priceList']
is NULL and whenI check the file is not uploaded to S3.
Question: Is there a way to see what error occurred so I can properly notify the user that is trying to upload the file? So far I just get NULL and the file is not uplaoded.0 Replies