Hi, I have recently added adding a PDF option in my website. Problem is that I can upload small PDF files upto 1 MB. But as the size increases more thant 1; it doesn't accept PDF My developer tells me it's hosting problem. Please tell me what's the problem. Here is my website http://www.sumitnabham.com. Go to folktales, Arabian Nights, Session. You will know it. P.S.) Please tell me solution today as I have told him to remove PDF option compltelty. Regards
You need to get your hosting provider to increase the 'max_upload_size' in your php.ini. At the same, it would be better if you could increase the 'max_execution_time' too.
This is exactly right. One of the things you can do, is upload a php file called info.php and have the following in the file <?php phpinfo(); ?> and then hit info.php in your browser, and it will tell you all of the values for your current php configuration if you are on a shared hosting provider. As such, if you are on a cPanel hosting environment, there are tools like multi php manager, or php selector, that will allow you to modify your max_upload_size and max_execution_time, yourself. We recommend limiting it to 20MB. But you should be able to open a ticket with your provider and ask them about increasing it, as 1MB is quite small, if that is the limitation.