PHP upload filesize limit

While you can set the PHP variable "upload_max_filesize" for only your account, our servers will remain at a default value. In order to change it for your script, you have to create or edit a ".htaccess" file in your scripts directory. Add the following in this file:

php_value upload_max_filesize xM

You may also need to add the PHP variable "post_max_size", to the same value as above, for PHP to accept a POST of that size:

php_value post_max_size xM

Where x is the value needed. Please keep this value to a reasonable level.

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

What software versions does Domain Inida web Hosting

All linux webhosting  accounts come with:Quick ReferenceApache  2.2.15PHP ...

Fatal Error: Installer couldn't find database. User is not assigned to database.

The part that's likely missing is the link of the username and the database. In the control panel...

How can I access my website statistics?

Your website's statistics are available under the Logs section in your cPanel. There you will see...

What is the maximum file size I can upload via the cPanel file manager?

You can upload a maximum of 20MB via the file manager, if you wish to upload big files then you...

PHP memory limit

If you are coming across an error like this: PHP Fatal error: Allowed memory size of x bytes...