How to increase your file upload limit


Your file upload limit is the amount of physical memory Monsta FTP is allowed to use for file uploads and downloads. Provided your web host allows it, this article explains 3 methods to increase the limit.

NOTE: If you are making a considerable increase, consider also increasing the number of seconds PHP may run a script for, to prevent time outs. Here's how.

NOTE: If you're running a Windows server you'll need to follow this tutorial.


In Monsta FTP's config file

Open the file /mftp/settings/config.php and change the following variable to the number of M (Megabytes) to increase the limit to.

$configMaxFileSize = "1024M";

In your server's PHP.INI file

You, or your server administrator, need to adjust the variable memory_limit in your server's PHP.INI file.

Some examples of what you can change it to include:

memory_limit = 256M

memory_limit = 1024M

After changing PHP.INI you may need to restart your web server.

Note: you may also need to change your post_max_size value which is normally set to 8MB.

In an .htaccess file

Create a .htaccess file inside your Monsta FTP install folder and add the following setting 1024M to your preferred number of megabytes.

php_value memory_limit 1024M

Note: you may also need to add a setting for post_max_size which is normally set to 8MB.

Note for NGINX

Open your proxy.conf file and add or change the line:

client_max_body_size 10m;

If you receive a 413 Request Entity Too Large error please check this document for instructions on resolving.