The uploaded file exceeds the upload_max_filesize directive in php.ini
I installed WordPress using a template, and when I was trying to install the template, I encountered this issue: "The uploaded file exceeds the upload_max_filesize directive in php.ini." I couldn't resolve it myself. Please assist in resolving this. Help me set the upload_max_filesize to greater than 50MB or more to avoid any problems.My Service ID is 4a27a92d-eb45-4ac5-b9f6-f574e78558be.
5 Replies
Project ID:
4a27a92d-eb45-4ac5-b9f6-f574e78558be
@jtmaveryk - what do you think about adding a php.ini to your template to be able to upload larger files?
Added to my reminders and todo. 🙂
My apologies for the delay in response, I looked into it and pushed a solution, adding a new ENV variable allowing customization to the max directly, so feel free to set the
SIZE_LIMIT
variable to 50M
and test that. If it doesn't work, reach back out here and I'll revert the change and suggest either the Increase Maximum Upload File Size
or WPCode
plugins to modify this for you internally.Could you please add also a variable to increase max_input_vars of php.ini? I have the error below: Thanks
Please contact your hosting service and ask them to increase max_input_vars value to 3000 in order to meet the theme requirements.
You can add this line to your dockerfile and you should be all set.