Menu
hello,
i am trying to build multiple file upload form…
where the number of files is unknown… (but maximum 5)
the first thing i want to check beofre moving files to server is to check its size,
and i try to get size like this:
[code=php]
foreach($_FILES[$fieldname][‘size’] as $KEY => $filesize)
{
if($filesize < $allowedsize
{
next;
}
else
{ stop and print error}
}
but i come to error when file size is more then upload_max_filesize or post_max_size
post returns an empy string and foreach fails saying:
[B]Warning: Invalid argument supplied for foreach() in C:Program Files.
help please…