Cannot upload PDF
I have the following component in a form
it's simple. All I need is for it to accept pdf files and upload on submit.
Whenever I select a pdf file, I get an error (attached). in the console it says
Failed to load resource: the server responded with a status of 422 (Unprocessable Content)
This only seems to happen for PDF files. I changed the component to image, and I was able to successfully upload a file.
What have I tried?
- published the livewire config and updated the rules
and set the max_upload_time
- modified the php.ini
config to include the following
- ChatGPT (π)
Any aassistance would be greatly appreciated.0 Replies