Bug #16834 Updated: submit no image and get error at line 0

From: Date: Thu, 25 Apr 2002 22:31:09 +0000
Subject: Bug #16834 Updated: submit no image and get error at line 0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6020@lists.php.net to get a copy of this message
ID: 16834 Updated by: sniper@php.net Reported By: enelson@netsolutionsllc.com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: windows 2000 PHP Version: 4.2.0 New Comment: This is by design and not bug. The error level was wrong but has been reduced to E_NOTICE in CVS and for 4.2.1. You can avoid the error now by setting your error_reporting level to exclude E_WARNING. Previous Comments: ------------------------------------------------------------------------ [2002-04-25 18:00:30] enelson@netsolutionsllc.com Upon installation of PHP 4.2.0, all forms which have an <input type=file> pages cause a PHP error at line 0 when submitted without specifying anything. It works fine if you specify a file by browsing, however, it fails if you do not specify anything. It says, "PHP Warning: No file uploaded in Unknown on line 0 PHP" after submission of nothing for the file upload piece of the form. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16834&edit=1

« previous php.bugs (#6020) next »