Re: image_type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



William Stokes wrote:
> I was under impression that php automatically gives values to image_type and
> image_name if one tries to upload image from a web form if the name of the
> uploaded image field is image.


You mean it automatically gives values to variables $image_type and $image_name ? No, it doesn't. You can get the type (MIME) and the name of the file with $_FILES['filename']['type'] for the MIME-type and $_FILES['filename']['name'] for the filename. I encourage you to take a better look here : http://www.php.net/features.file-upload and you can also print_r/var_dump($_FILES);

Hope that helps,

--
Josip Dzolonga
http://josip.dotgeek.org

jdzolonga[at]gmail.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux