php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3784 Variable mime type missing
Submitted: 2000-03-09 11:10 UTC Modified: 2005-03-31 16:13 UTC
From: orueda at cistia dot es Assigned:
Status: Wont fix Package: Misbehaving function
PHP Version: 3.0.14 OS: IRIX 6.5
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: orueda at cistia dot es
New email:
PHP Version: OS:

 

 [2000-03-09 11:10 UTC] orueda at cistia dot es
Hello: 

I have a form. This form upload one file. The php manual say I can to read the variable fieldname_type to get the mime type but I don?t get this variables. 

This is the form html: 

<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> 
<html> 
<head> 
</head> 
<body> 
<div align=center> 
<a href="index.php">Home</a> | 
<a href="buscar.php">Buscar</a> | 
<a href="insertar.php">Insertar</a> | 
<a href="secciones.php">Secciones</a> 
<br><br><form action="parametros.php" method="post" enctype="multipart/form-data"> 
<input type="hidden" name="_fdAccArticulos" value="1"> 
<table > 
<tr > 
<td > 
T&iacute;tulo: 
</td> 
<td > 
<input type="text" name="_fdValArticulos1" value="" > 
<input type="hidden" name="_fdTipArticulos1" value="10"> 
<input type="hidden" name="_fdCamArticulos1" value="titulo"> 
</td> 
</tr> 
<tr > 
<td > 
Secci&oacute;n: 
</td> 
<td > 
<select name="_fdValArticulos2" > 
<option value="33">Comunicaciones</option> 
<option value="2">x</option> 
<option value="34">Eventos</option> 
<option value="4">????? ? ??I?? ? ??</option> 
<option value="5">a\'a</option> 
<option value="6">comillas \"</option> 
<option value="23">d</option> 
<option value="24">f</option> 
<option value="9">comillas "</option> 
<option value="20">k </option> 
<option value="36">Tecnolog?as</option> 
<option value="12">????????</option> 
<option value="13">hh</option> 
<option value="14">j</option> 
<option value="15">gg</option> 
<option value="16">d</option> 
<option value="21">reto </option> 
<option value="22"></option> 
<option value="25">x</option> 
<option value="38">alala</option> 
<option value="27">casa</option> 
<option value="28">m?vil</option> 
<option value="29">cs'20 d</option> 
<option value="30">"</option> 
<option value="31">ll</option> 
<option value="37">Desarrollo</option> 
</select> 
<input type="hidden" name="_fdTipArticulos2" value="20"> 
<input type="hidden" name="_fdCamArticulos2" value="idseccion"> 
</td> 
</tr> 
<tr > 
<td > 
Texto: 
</td> 
<td > 
<input type="text" name="_fdValArticulos3" value="" > 
<input type="hidden" name="_fdTipArticulos3" value="10"> 
<input type="hidden" name="_fdCamArticulos3" value="texto"> 
</td> 
</tr> 
<tr > 
<td > 
Publicar: 
</td> 
<td > 
<input type="checkbox" name="_fdValArticulos4" value="1" > 
<input type="hidden" name="_fdTipArticulos4" value="30"> 
<input type="hidden" name="_fdCamArticulos4" value="publicada"> 
</td> 
</tr> 
<tr > 
<td > 
Foto: 
</td> 
<td > 
<input type="hidden" name="MAX_FILE_SIZE" value="20480"> 
<input type="file" name="_fdValArticulos5" > 
<input type="hidden" name="_fdTipArticulos5" value="40"> 
<input type="hidden" name="_fdCamArticulos5" value="foto"> 
</td> 
</tr> 
<tr > 
<td rowspan="2"> 
<input type="submit" value="Insertar" > 
</td> 
</tr> 
</table> 
</form> 

<br> 
<a href="index.php">Home</a> | 
<a href="buscar.php">Buscar</a> | 
<a href="insertar.php">Insertar</a> | 
<a href="secciones.php">Secciones</a> 
</div> 
</body> 
</html> 

parametros.php is: 

<? 
  for (reset($HTTP_POST_VARS); $strKey = key ($HTTP_POST_VARS); next($HTTP_POST_VARS)) { 
     echo "$strKey = $HTTP_POST_VARS[$strKey]\n"; 
  } 
?> 

and I get this: 

_fdAccArticulos = 1 
_fdValArticulos1 = a 
_fdTipArticulos1 = 10 
_fdCamArticulos1 = titulo 
_fdValArticulos2 = 33 
_fdTipArticulos2 = 20 
_fdCamArticulos2 = idseccion 
_fdValArticulos3 = a 
_fdTipArticulos3 = 10 
_fdCamArticulos3 = texto 
_fdValArticulos4 = 1 
_fdTipArticulos4 = 30 
_fdCamArticulos4 = publicada 
MAX_FILE_SIZE = 20480 
_fdValArticulos5_name = curve2.gif 
_fdValArticulos5 = /www/htdocs/tmp/phpAAAa00RVx 
_fdValArticulos5_size = 4110 
_fdTipArticulos5 = 40 
_fdCamArticulos5 = foto 

where is the variable _fdValArticulos5_type? 

Oscar =;-(

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-31 16:13 UTC] php-bugs at lists dot php dot net
We are sorry, but we do not support PHP 3 related problems anymore.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 10:01:27 2024 UTC