FileUpload Validation Messages
I am uploading to a s3 and it all works fine, for some reason the file upload validation messages are not being shown just saying error on upload. Validations are working but the validation error messages are not shown can someone tell me the reason for this issue. I have even set up my liverwire.php configuration file as well, along with php.ini
12 Replies
right click inspect and see what the network response was to the request.
I think the helper text is overriding that.
try to comment the
->helperText()
and see
as the error messages uses something similaralready tried this didnt work tho
it shows 422 unprocessable content
in the response on network for the 422 i see
maybe max upload issue, consider changing that from the field validation, livewire config, and php or server config too
on php.ini its set to 40mb
on livewire config its set to 25mb in bytes
and on the field also set to 25mb in bytes
what is the generated file etimated size?
you mean the size of the file i'm trying to upload, if so its 31.5 mb
Yes sorry I meant the uploaded one, So that's the issue, just increas the limits
ok i just change the max to 40 mb in bytes on the livewire config
now i can upload the temporary_file and i get the error message after i click create, but what i really wanted to do was to show an error message when the temporary file was uploading through livewire
change the field one too
Oh, sorry for the misunderstanig!
but i need to keep the maxSize on the field to 25mb, currently it looks like this
what i want to do is to show the error message while the liverwire temporary file upload is taking place not after i click the create button.
anyways @Mohamed Ayaou thank you so much for the help!