0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.