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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.