http://nivo.dev7studios.com/
Category Archives: JQuery
Esempi
Accordion
jQuery Tools Expose
max_file_uploads problem fix
It cannot upload files more than 20. So after googling I found that php version number from 5.2.12 has introduced a new feature “max_file_uploads” which is limiting the number of uploads to 20 by default. We cannot change this by function ini_set() or .htaccess (bug #50684) because this is done to prevent DOS attack (Denial Of Service Attack). The real problem is max_file_uploads counts empty uploads as well, so if we have 20 input fields of file type fields and we only use few of them this problem occurs. This is actually a bug in php max_file_uploads BUG.
Solution
Somehow I managed to change this by by placing ini.php inside that folder and changed max_file_uploads to 30. But this is not recommended. Actually it is counting empty file upload fields too.
Alternate fix (jquery fix for changing max upload files)
I found a nice article and in that they have given a nice workaround using javascript. Just disable file inputs with null value and problem is solved. without changing the php ini.
$('form').submit(function(){$('input:file[value=""]').attr('disabled', true);});