|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60808 No file uploaded in Unknown on line 0
Submitted: 2012-01-19 17:15 UTC Modified: 2012-01-19 18:12 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ava3ar at gmail dot com Assigned: joey (profile)
Status: Closed Package: FPM related
PHP Version: 5.4SVN-2012-01-19 (SVN) OS: Gentoo
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ava3ar at gmail dot com
New email:
PHP Version: OS:


 [2012-01-19 17:15 UTC] ava3ar at gmail dot com
If you create a form with a file input
and press submit without using the file input
it causes a notice, which it shouldnt do, and in 5.3 doesnt

Test script:
<form method="post" id="creation" enctype="multipart/form-data" action="" accept-charset="UTF-8">
        <label for="arttitle" id="labelarttitle">Title:</label>
        <input  type="text"  id="arttitle" name="arttitle" placeholder="Title" title="Title" />
        <input type="file" id="primaryImage" name="image1" placeholder="image1" title="Main Image" />
        <button type="submit" id="submitButtonID">Submit</button>

Expected result:
User created error, caused by user validation (if any)

not a PHP engine notice

Actual result:
PHP Engine notice


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-19 18:12 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: joey
 [2012-01-19 18:12 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

This is the expected behaviour when there are no files uploaded and you compiled with debug enabled.
 [2012-01-19 18:14 UTC]
Specifically, this is why you're getting the message:

                                sapi_module.sapi_error(E_NOTICE, "No file uploaded");

(main/rfc1867.c - lines 976-978)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 18:01:30 2024 UTC