Hi, I am using this code to upload my images.
Code:
<?php
$file_realname = trim($_fileS['userfile']['name']);
$uploaddir = "images/";
if (move_uploaded_file($_fileS['userfile']['tmp_name'], $uploaddir . $file_realname))
{
echo $file_realname." has been uploaded";
}
else
{
echo "<strong>$file_realname</strong> did not upload!";
}
?>
And I get this kind of error when I tries to upload a big file.
Notice: Undefined index: userfile in C:\Program files\Apache Group\Apache2\htdocs\FYP\upload\upload.php on line 2
Notice: Undefined index: userfile in C:\Program files\Apache Group\Apache2\htdocs\FYP\upload\upload.php on line 5
did not upload!
Is there a way to expend the limit of the file size? And restrict user to upload all know pictures type only.