Page 1 of 1

Directory Index forbidden by rule

Posted: Mon May 24, 2010 1:57 am
by samriya
In my site, there's a option to upload photos. when client upload photos, sometimes it gets uploaded. sometimes the following error is displayed " undefined index 'uploadedfile' " or sometimes page is blank. From error_log file ,found the error " Directory Index forbidden by rule". but i provided the full permission in server.
Anyone help on this why sometimes Photo not gets uploaded. using apache, Linux Server.

Re: Directory Index forbidden by rule

Posted: Mon May 24, 2010 7:24 am
by markusn00b
The undefined index error suggests that the $_FILES array is not being populated. From this, we can deduce that the file upload fails before the PHP populates the array. My guess is that the file you're uploading is exceeding your post_max_size php.ini value, and/or one of the related settings (see description of post_max_size) is being exceeded.

Mark.

P.S. The error in your error_log file looks to be an Apache error regarding access to directory listings. I could be wrong, though.