File upload (image) fails randomly on some images but not on others
Hi, As mentioned in the title I have a problem with image uploads in my admin panel form.
A user can create a car and upload a thumbnail and pictures for this.
I have tested this out with multiple pictures and some fail, some don't and I don't understand why and fail to find any information online.
This is the code I use in my form:
I would appriciate if anyone could help me out
4 Replies
Any error messages? Maybe in the DevTools Console or the Laravel log?
Ohh just found one in the devTools
The error in my dev console is:
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
And when i click on this i get following error: The GET method is not supported for route livewire/upload-file. Supported methods: POST.
"Request Entity Too Large" means your file is bigger than what your server accepts. Check the nginx and PHP config for the maximum file and post size.
I will try to change my php ini file