Error on The uploaded file exceeds the upload_max_filesize directive in php.ini when building theme

Question

So I’m building a WordPress theme from scratch and I’m learning things as I progress, but I’m having issues with file uploads on production.

So locally, everything works great and I can upload images perfectly, but on production I am getting this error “The uploaded file exceeds the upload_max_filesize directive in php.ini“.

So I have a 8MB limit by default on WordPress, but when uploading a 11KB photo, I’m getting the error “The uploaded file exceeds the upload_max_filesize directive in php.ini“.

So for my WordPress theme developers, what would your approach be to fix issues with these configurations when theme developing?

Picture for reference:

enter image description here

enter image description here

0
, Sem 2 years 2020-09-01T10:10:22-05:00 0 Answers 53 views 0

Leave an answer

Browse
Browse