|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16270 Weird file uploading
Submitted: 2002-03-25 15:41 UTC Modified: 2002-04-23 17:32 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: coolzero at coolzero dot org Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.6 OS: Linux 2.4.7
Private report: No CVE-ID: None
 [2002-03-25 15:41 UTC] coolzero at coolzero dot org
When I use a form with ENCTYPE="multipart/form-data" all the variables that should exist from the post are not set.
Here is an example of the form:

<form action="imagens.php" method="post" ENCTYPE="multipart/form-data">
<input type="hidden" name="acrescentar" value="true">
<input type="hidden" name="ID" value="$ID">
<p>Nome: <input type="text" size="20" name="nome" value=""></p>
<p>Ficheiro: <input type="file" name="upfile"></p>
<p><input type="submit" name="submitar">
<input type="reset" name="resetar"></p>

The variable $acrescentar, $ID, $nome and $upfile are not set
I don't know if it is a bug of PHP, or something my ISP changed in the configuration file, but this worked and now it doesn't.

Sorry my bad english


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-25 15:43 UTC]
Can you try the 4.2.0rc1 from ?

 [2002-03-25 16:09 UTC] coolzero at coolzero dot org
I will talk with the admins of my ISP to see if they upgrade the PHP
 [2002-04-22 11:59 UTC] eric at themepark dot com
(I think this is the same thing?)


On IE6, Windows XP Pro, PHP 4.1.2 I'm seeing some strange stuff when my form includes more than JUST the image.

Somtimes the variables don't get passed to the script but the file doesn; sometiems none of it gets passed.

 [2002-04-23 16:39 UTC] eric at themepark dot com
sorry- nevermind- bug in my build, clean install fixed. apologies for adding clutter. -Eric
 [2002-04-23 17:32 UTC]
This works fine with PHP 4.2.0. Also, make sure you're 
accessing the post vars from the $_POST[] array.


PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Aug 06 02:01:24 2020 UTC