hi everone. I searched around google and stackoverflow, but didnt quite find the right answer.
im using a form. Within this form i have a simple uploader
<form method="post" action="uploadImage.php" enctype="multipart/form-data">
<input name="upload" id="upload" type="file" />
<input name="add" type="submit" id="add" value="add">
</form>
Now, in my uploadImage.php file, i have written, below
print "<pre>";
print_r($_FILES['upload']);
print "</pre>";
when i upload a image with filesize about below 1.5MB, an array with info of that file is returned. But when i upload a file with about 2MB size, i get 1 error, and no filesize. when i upload a 8MB file i get this error, Notice: Undefined index: upload in C:\Program Files........\uploadImage.php on line 2
I think the problem has something to do with upload limitations, the question is how can i fix this?