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

Hosting Basics

We'll explain some basic procedures and steps to use your account. Username and Passwords:...

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

403 Forbidden Error and Solution

HTTP Error 403 - Forbidden Generally. the HTTP error 403 - Forbidden means that access to the...

How do I change the timestamp on my emails?

  Each webmail client has a timezone setting, which is set to the server clock by default....

How do I edit a file?

Editing a pre-existing file through File Manager allows you to make immediate changes to your web...