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

Can I upload files via an online file manager ?

Yes. Login to your Control Panel (http://www.yourdomain.com/cpanel/) and select "File Manager".

How to create an autoresponder in Cpanel

We do have a video tutorial on how to create an autoresponder. Autoresponder returns a...

How to login to cPanel

Please watch our movie tutorial on how to login to cPanel. If you recently purchased a new...

What is FTP?

FTP stands for File Transfer Protocol and it is the process used to upload and download files...