WebFileMan Configuration & Using

Overcoming Upload Size Limit

Any web based script will have hard times handling very big file uploads. So if your files exceed in size the usual PHP default setting of 2M, you may experience problems with MyWebFTP while uploading them. Although if you can modify the server PHP configuration, this limit can be extended. There are a number settings that affect file uploading:


the most important setting in this case, as the name suggests, sets the maximum filesize for uploads.

Although file uploads are also affected by a number of other settings:


Sets max size of post data allowed. This setting affects file upload - this value must be larger than upload_max_filesize.


If memory limit is enabled, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.


Also uploading large files would require pretty long time so we suggest that this setting should also be extended.

Now the question is where you should put these settings in?

Updating The Main PHP php.ini Configuration File

If you own the web server or rent a dedicated server, the best way is to place them in the main PHP configuration file - the php.ini file. You can easily find out the path of this file if you create a test PHP page with phpinfo(); function - it will show the path to the php.ini file. The code that you enter in this file may look as follows:

upload_max_filesize = "32M"
post_max_size = "32M"
max_execution_time = 600
memory_limit = "32M"

Please note that these values are for example only, you might need to experiment with different figures depending on your requirements. Just make sure that you overwrite the original settings that already present in the php.ini.

Using Subdirectory .htaccess File

If you rent a shared hosting, the situation may be a bit more complicated. You can change the PHP settings if your web hosting accoint meets all the following requirements:

  • The web server software is Apache
  • The PHP is installed as an Apache module (not CGI)
  • You are allowed to alter the PHP configuration by using sub-directory .htaccess files

You should ask all these questions to your web hosting system administrator, and if all replies are "Yes", you are lucky today.

Create a new file named ".htaccess" in the home folder of your PHP script and enter the following code there:

<IfModule mod_php5.c>
	php_value upload_max_filesize "32M"
	php_value post_max_size "32M"
	php_value max_execution_time 600
	php_value memory_limit "32M"
<IfModule mod_php4.c>

	php_value upload_max_filesize "32M"
	php_value post_max_size "32M"
	php_value max_execution_time 600
	php_value memory_limit "32M"

Testing Your Updated Configuration

You can see if your updated settings come in force if you open up again that test PHP page with phpinfo(), search for these parameters and you should see the updated values.