Re: undefined index: $_FILES || $HTTP_POST_FILES

From: Date: Mon, 08 Nov 2004 09:46:51 +0000
Subject: Re: undefined index: $_FILES || $HTTP_POST_FILES
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-201506@lists.php.net to get a copy of this message
Tobias Neumann wrote:
Hello! I have the same script on two webservers with php 4.3.9 and apache 2, both with the same php configurations. On one server I can not access $_FILES or $HTTP_POST_FILES, although a form with a file has been correctly submitted. apache_request_headers() contains: [Content-Type] => multipart/form-data; boundary=---------------------------207315575716727585901748724465 [Content-Length] => 5779 So php should have received the form data. I can access $_GET and $_POST without any problem. $_FILES and $HTTP_POST_FILES do simply not exist, and when I try to access them I just get an undefined index error, or with print_r() an empty array. Regards, Tobias Neumann
http://sk2.php.net/manual/en/features.file-upload.php Read the Related Configurations Note and also check enctype attribute of your <form>

« previous php.general (#201506) next »