Report this

What is the reason for this report?

Max upload file wordpress only 2mb

Posted on January 12, 2021

I want to increase my upload file space… because if i upload more than 2mb, showed alert that ‘maximal upload from hosting provider only 2mb’. in here, my hosting provider is digitatl ocean



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @infofreelenstudio,

You would need to increase the PHP post_max_size and upload_max_filesize via your php.ini file.

I could suggest following the steps from this tutorial here on how to adjust your PHP settings:

https://www.digitalocean.com/community/tutorials/how-to-change-your-php-settings-on-ubuntu-14-04

Regards, Bobby

Hello,

What you can do is to create an info.php file and then check the values. You can create a file named info.php (the name doesn’t really matter) and put the following content in the file:

<?php
phpinfo();

Then check for the current value of upload_max_filesize and post_max_size you can also check which is the configuration file - php.ini that is currently used and apply the changes there (if the site using the global php.ini file and you change the values for these settings this will make the changes globally for all sites). Ideally you would like to have the following values:

upload_max_filesize = 64M
post_max_size = 64M

Hope this helps! Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.