I am at a complete loss with this one. I use this to submit images without refresh:
$.ajax(
{
url:"<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>",
type:"POST",
data:X,
cache:false,
processData:false,
contentType:false,
beforeSend:function()
});
but I have php verification to make sure there are only a limited number of images selected
if((sizeof($_FILES['IMAGE']) + $IMAGE_COUNT) > $POST_MAX_IMAGES)
For some reason, sizeof($_FILES['IMAGE'] is constantly stuck at 5??? I can't get a proper count of the number of files selected. Its always at 5. But if I do foreach on the $_FILES, it will go through all of them.
Why is this happening?
max_file_uploadssetting inphp.iniFormData