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 is the File Manager?

The File Manager allows you to manage your site through HTML, rather than an FTP tool or other...

How do I rename a file or folder?

You can quickly rename a file or folder if you originally labelled a file or folder with the...

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...

How do I use the File Manager?

A full guide can be found at http://www.cpanel.net/docs/cp/fileManager.htmThe File Manager allows...

How do build website using RVSiteBuilder on cPanel?

 1.In order to login to your cPanel account, ...