PHP Upload Form, “Notice: Undefined index: upload”

FeeseeOrataro

New Member
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\[code\]<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="http://stackoverflow.com/questions/3763429/add"></form>\[/code\]Now, in my uploadImage.php file, i have written, below\[code\]print "<pre>";print_r($_FILES['upload']);print "</pre>";\[/code\]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 2I think the problem has something to do with upload limitations, the question is how can i fix this?
 
Back
Top