Bug #70243 [Opn]: Notice when no file uploaded

From: Date: Wed, 12 Aug 2015 06:46:39 +0000
Subject: Bug #70243 [Opn]: Notice when no file uploaded
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195147@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70243&edit=1 ID: 70243 Updated by: laruence@php.net Reported by: scott dot vivian at gmail dot com Summary: Notice when no file uploaded Status: Open Type: Bug Package: Unknown/Other Function Operating System: Debian 8 PHP Version: 7.0Git-2015-08-11 (Git) Block user comment: N Private report: N New Comment: you are using a debug version PHP ... Previous Comments: ------------------------------------------------------------------------ [2015-08-11 22:35:00] scott dot vivian at gmail dot com Description: ------------ To reproduce: 1. Make a form that has a "file" input type. 2. Submit the form without a file (e.g. fill in the other fields). (Using the PHP7 Vagrant box with git updated to the latest master branch.) Test script: --------------- <?php if (!empty($_POST)) { var_dump($_POST); } ?> <form enctype="multipart/form-data" method="post"> <p><input type="text" name="name"> <p><input type="file" name="file"> <p><input type="submit" value="Save"> </form> Actual result: -------------- A notice that no file was supplied. Notice: No file uploaded in Unknown on line 0 A very old bug #32446 seems to imply this has happened before so it may be a regression. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70243&edit=1

« previous php.bugs (#195147) next »