Could someone tell me why the following code does not return the file size (in bytes) of the uploaded image. Thanks.
$names=array();
$names1=array();
$types=array();
$xx=0;
$size=array();
foreach ($_FILES["pictures"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["pictures"]["tmp_name"][$key];
$name = $_FILES["pictures"]["name"][$key];
$type = $_FILES["pictures"]["type"][$key];
$size = $_FILES["pictures"]["size"][$key];
$xx++; }
}
Form Field:
<input name="pictures[]" type="file" id="img01" value="<? echo"$pictures[0]";?>" size="50">
It all works beautifuly except
$size = $_FILES["pictures"]["size"][$key];
that returns nothing.