These are found in Drupal 6 at "Administer » Site configuration » File uploads" ( /admin/settings/uploads ). ![]() If this is an issue, see the page on how to Increase memory available to PHP (3 methods)ĭrupal also allows/enforces its own size limits, independently of what PHP allows. Generally speaking, memory_limit should be larger than post_max_size. The PHP documentation states that the memory_limit setting also affects file uploading. htaccess file in your Drupal root directory. However, for hosts running PHP as a CGI script with suexec (for example) you may be able to put these directives in a php.ini file in your Drupal root directory. Note that for some hosts this is a system-wide setting. Add the below to the relevant php.ini file (recommended, if you have access).htaccess (depending on your hosting situation).įor example, to increase the limit on uploaded files to 10 MB: The default PHP values are 2 MB for upload_max_filesize, and 8 MB for post_max_size.ĭepending on your host, changing these two PHP variables can be done in a number of places with the most likely being php.ini or. The upload module limits the size of a single attachment to be less than either post_max_size, or upload_max_filesize, whichever is smaller. Since 'post_max_size' is the limit for all the content of your post, many people choose 'post_max_size' to be a multiple of 'upload_max_filesize' to allow multiple files to be uploaded, but this is not essential. On the settings page for the upload module, Drupal calculates and displays the maximum file size that you can set based upon two PHP settings: 'post_max_size' and 'upload_max_filesize'. The default values for PHP will restrict you to a maximum 2 MB upload file size. ![]() ![]() You can learn how to increase memory limit here.ĭrupal's limits on upload file size are determined by your server's PHP settings (as well as Drupal 6's specified settings that can be set at Admin > Site Configuration > File Upload). Note 2: Increasing PHP upload size is different from increasing PHP memory limit. If you're on shared hosting, you may not have access to it. To locate it, look up your PHP configuration. Note 1: The file php.ini is not part of Drupal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |