The files.0 field must not be greater than 12288 kilobytes. (Forms\Components\FileUpload)
The files.0 field must not be greater than 12288 kilobytes.
When I am trying to upload more then 12MB files its showing this error. How can I solve it ? Let me know if you need any details.
Solution:Jump to solution
Hm
Can you add this in the rules
'rules' => 'file|mimes:png,jpg,pdf|max:102400', // (100MB max, and only pngs, jpegs, and pdfs.)...
20 Replies
Thats weird. You are setting maxSize() to 1024 kb (1MB)
Try and remove (or at least comment) the
->maxSize()
I tried without this ->maxSize() already. Same issue @Matthew . Actuall error is when I am uploading the file. http://127.0.0.1:8000/livewire/upload-file When I drop any file into the dropzone. Its start uploading. Then when uploading completed 100% its throwing an error response that is The files.0 field must not be greater than 12288 kilobytes. Do you have any idea, How can I disable this validation?
Do not double post. #✅┊rules
Maybe the max size in your php.ini
Its the php configuration essentially
No its a validation error. php.ini set 2000MB
Just shooting a shot
Can you show this in your livewire config?
Maybe there are validation rules there
This is how its looking brother @Matthew
Solution
Hm
Can you add this in the rules
'rules' => 'file|mimes:png,jpg,pdf|max:102400', // (100MB max, and only pngs, jpegs, and pdfs.)
Thank you brother, This one worked.
Livewire will validate ALL temporary file uploads with the following rules: file|max:12288
by default
Get it now. was my first time using filament.
Its okk. Happy to help 🙂
Thank you so much for the help man ❤️
Make sure to mark it as solved so others can see it if they need to
Okay