Hi all,
I have some code that allows users to upload their image to my site.
I only want them to be able to upload .jpg and .gif files for security reasons and also I only want them to upload an image up to a certain size.
I'm using this currently which only allows .gifs to be uploaded:
if ($_FILES['imageupload']['type'] == "image/gif")
{
copy (copy root is here;)
}
Is this the best way to do it and also how can I get it to look at the size of the file that has been uploaded?
I think i'm going to use:
$_FILES['imageupload']['size']