Uploads and php.ini |
![]() |
Written by Trond |
Wednesday, 10 March 2010 19:26 |
If you have problems uploading files to your server, or if you have a problem with larger files, you may need to make som adjustments to the php.ini configuration. You can download the php.ini at the bottom of this page. The php.ini file contains all the configuration settings for your installation. Sometimes these setting might be overridden by directives in apache .htaccess files or even with in the scripts themselves but for the moment let's just concentrate on the ini file. This file contains the following settings that we need to modify:
The first one is fairly obvious if you set this off, uploading is disabled for your installation. We will cover the rest of the configuration settings in detail below. upload_max_filesize and post_max_size
It's important to realize that upload_max_filesize is the sum of the sizes of all the files that you are uploading. post_max_size is the upload_max_filesize plus the sum of the lengths of all the other fields in the form plus any mime headers that the encoder might include. Since these fields are typically small you can often approximate the upload max size to the post max size. According to the PHP documentation you can set a MAX_UPLOAD_LIMIT in your HTML form to suggest a limit to the browser. Our understanding is that browsers totally ignore this directive and the only solution that can impose such a client side restriction is Rad Upload Applet memory_limit
max_execution_time and max_input_time
The php.ini you can download below is optimized for common Joomla! 1.0.x installations. If you use a picture gallery with huge images or videos, you may need to adjust the upload_max_filesize and post_max_size |
Last Updated on Sunday, 16 May 2010 19:38 |