Online Chat
 Call Us: 
Browse Submit a Ticket
Advanced Search
Rss Categories

Increasing maximum attachment file size

Author: Edward Hardin Reference Number: AA-00314 Views: 13232 Last Updated: 10/28/2011 11:30 AM 0 Rating/ Voters

To set maximum size of files that you can upload to knowledge base:

  1. Go to "Administration" > "General Settings".
  2. Click on the "Attachments & Media" tab.
  3. There you can see separate settings for attachments and images&media:

    Attachment Settings - these settings apply to files that you attach to your articles on the Attachments tab.

    Image & Media Settings - these settings apply to images, flash, and media files that you embed to your articles and upload using drag-n-drop to your articles directly or using the image/media manager:

  4. You can change "Maximum File Size" value separately for both types of files.
  5. Click "Save" to apply changes.

Maximum File Size option is limited by upload_max_filesize and post_max_size directives of PHP. If you want to setup maximum file size larger than it is possible to do in knowledge base settings, you should 

  1. Open the php.ini configuration file of your PHP installation.
  2. Find upload_max_filesize directive.
  3. Set an appropriate value to it. Let's say you need to upload files with size up to 128 megabytes, so you set:
    upload_max_filesize = 128M
  4. Find post_max_size directive.
  5. Set an appropriate value to it:
    post_max_size = 128M
  6. If memory_limit is enabled, it also affects file uploading. Generally speaking, memory_limit directive should be larger than post_max_size or disabled by setting it to "-1":
    memory_limit = -1
  7. Restart your web server to apply changes.

These steps also help you to increase maximum size of the following files that you may want to upload to KMP:

  • images and media files that can be uploaded in WYSIWYG editor
  • logo
  • language files, if you work with exported language files and then import them to the knowledge base
  • CSV files that you can use to import articles from
  • exported database backup files that you want to import

Notice for WAMP admins

Make sure that you're editing the right php.ini file. WAMP uses the one located in Apache bin directory (by default, C:\wamp\bin\apache\Apache2.2.x\bin\).

Notice for IIS7 admins

IIS7 has an additional setting for maximum upload file size. By default the limit is 30MB. Learn how to increase that limit on IIS7.