php.net |  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
Votes:1
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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: coolzero at coolzero dot org
New email:
PHP Version: OS:

 

 [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>
</form>

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-25 15:43 UTC] derick@php.net
Can you try the 4.2.0rc1 from www.php.net/~derick ?

Derick
 [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.

-E
 [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] sniper@php.net
This works fine with PHP 4.2.0. Also, make sure you're 
accessing the post vars from the $_POST[] array.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 15:01:56 2024 UTC