Posted by Janwillem Borleffs on 09/19/07 20:48
Bill wrote:
> i tried
> $newname = $_FILES['imagefile']['type'];
> echo $newname;
> and got nothing.
> Is there something I have to do to make this work
>
Make sure the form has the correct method/enctype defined:
<form method="post" action="..." enctype="multipart/form-data">
<input type="file" name="imagefile" />
</form>
JW
Navigation:
[Reply to this message]
|