Last updated February 2, 2012. Created by quicksketch on April 4, 2009.
Edited by malcomio, jwuk. Log in to edit this page.

This page contains a list of common problems and solutions when using FileField. If you experience a problem that is not listed here, do not post a comment. Post an issue to the FileField issue queue.

Increase the file upload size

This question has an entire handbook page. See the Increase Maximum File Size page.

Increase the number of allowed files

This problem generally has two solutions. If you can upload exactly 21 images, this is probably because of bug in the CCK "Add another field" button. Upgrade to CCK 2.2 (Drupal 6) or higher where this problem is fixed.

If you're limited at any other number (25 seems to be common), then you are probably being limited by a PHP security extension called Suhosin. You can confirm if your server has Suhosin installed by visiting the path admin/reports/status/php within your Drupal site, or you can make an empty php file with the phpinfo() function. If there is a Suhosin section in the report, this is almost definitely the problem.

To fix this problem, find your php.ini file (usually in /etc/php.ini) and change the following values: = 200000
suhosin.request.max_vars = 20000 = 265000
suhosin.request.max_value_length = 265000
suhosin.upload.max_uploads = 100

You may want to increase some of these values further if the new limit does not let you upload the desired number of files. After changing this value, you must restart Apache for them to take effect.

You might also be able to set these values using an .htaccess file. See the handbook page on increasing the maximum file upload size for examples on how to do this.

Change the icon set

In order to use a different icon set, you can use hook_filefield_icon_sets() in a custom module. Here is an example, taken from

* @file
* New icon theme for filefield fields
* Implementation of hook_init()
function icontheme_init() {
  //setting the mytheme theme as default
  variable_set('filefield_icon_theme', 'mytheme');
* Implementation of hook_filefield_icon_sets().
* Define a list of icon sets and directories that contain the icons.
function icontheme_filefield_icon_sets() {
  return array(
    'mytheme' => drupal_get_path('module', 'icontheme') . '/icons',

Looking for support? Visit the forums, or join #drupal-support in IRC.


Ran into a similar problem where I wasn't able to upload big files. It ended up being the /tmp partition being too small and resulting in large files being cut off during upload.
Changing tmp dir in php.ini to a dir on a big enough partition fixed it for me. Might be useful info for somebody else.