Error with file upload: "No file uploaded in Unknown on line 0"
| From: | Jason Young | Date: | Mon, 23 Sep 2002 17:46:15 +0000 |
| Subject: | Error with file upload: "No file uploaded in Unknown on line 0" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-117306@lists.php.net to get a copy of this message | ||
I have some code that a user can set a description about an item to be posted, and then add some image files of the item.
Its a 3x3 frame of <input type="file"> fields, along with an 'include' line for each one.. only selecting a file with the 'Browse' button, or entering a website manually will trigger this include..
Of course, there aren't always going to be 9 images to upload, so sometimes they have to be left blank ... everytime I submit something without all 9 entries filled, I get a bunch of lines in my error log like the following:
[error] PHP Notice: No file uploaded in Unknown on line 0
Is there something I can do to combat this? It's quite annoying to see up to 9 of these lines everytime I submit something from my page.
I don't want to turn off all error reporting or anything like that, either... I'd like to see something that'll make it a non-error.
Thanks!
-Jason Young