----- Original Message ----- 
From: "bryan_is_south"

> Hi Brian,
>              An error for echo($_FILES['upload']['name']); does not
> necessarily mean that there is no $_FILES superglobal.
>
> The above assumes that you are using a form with <input type="file"
> NAME="upload">
>
> Try this
>
> if(!is_set($_FILES))
>   {
>   echo("There are no files uploaded\n");
>   die();
>   }
> foreach($_FILES as $key => $thisfile)
>   {
>   echo("For the form input name that is [" . $key . "]\n\n");
>   echo("Remote file (name) is [" . $thisfile['name'] . "]\n");
>   echo("Browsers suggested mime (type) is [" . $thisfile['type'] .
"]\n");
>   echo("Actual file (size) is [" . $thisfile['size'] . "]\n");
>   echo("Server temporary name (tmp_name) is [" .
$thisfile['tmp_name'] .
> "]\n");
>   echo("Upload (error) is [" . $thisfile['error'] . "]\n\n\n\n");
>   }
>

---

Thanks for the codes.
The first isset() part seems to show that the $_FILES is there, but
the foreach loop doesn't go through.  It doesn't even begin the loop.
That doesn't really make sense, but somehow, there is the $_FILES
superglobal, but it can't loop through them.
Is this normal?

Thanks

------------------------------------

Hi Brian,
             It seems that $_FILES is set but has no dependents.

I will write some code and test it on a couple of servers and send it to you 
as tested and working code.

It will have to wait until tomorrow.

Thanks, Robert.

Reply via email to