Re: Files types



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


.



Relevant Pages

  • Re: How to customise size of powerpoint slides printed on "handouts"?
    ... Thanks for the confirm, Bill. ... Echo ... >> Echo [MS PPT MVP] ... >>> larger slides than the default that comes out - this will make the ...
    (microsoft.public.powerpoint)
  • Re: Fetchmail Patch Request
    ... > while read server user pass; ... Thanks very much, Bill! ... Is there a simple way to use netcat here? ... echo PASS ...
    (comp.unix.shell)
  • Re: IIUG ELection
    ... Double Echo said: ... That's a very talented fruit. ... Ipse dixit. ... no bill is required as no value was provided." ...
    (comp.databases.informix)
  • Re: variable number of args
    ... bill wrote: ... echo $bar; ... if ($numargs) { ...
    (comp.lang.php)
  • Re: imagecreatefromgif not working
    ... return $bill; ... Typing manually the file will get you into trouble later... ... echo 'existant'; //should always be called has it would be created if it ... php. ...
    (comp.lang.php)