![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/03/2007, 04:57
|
| | Fecha de Ingreso: abril-2005
Mensajes: 151
Antigüedad: 19 años, 9 meses Puntos: 1 | |
Re: Prueba local de formulario para enviar archivos <?php
// In PHP 4.1.0 or later, $_FILES should be used instead of $HTTP_POST_FILES.
if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
copy($HTTP_POST_FILES['userfile']['tmp_name'], "C:\Documents and Settings\jorge\Escritorio\trabajo\www\pruebas\imag enes");
} else {
echo "Possible file upload attack. Filename: " . $HTTP_POST_FILES['userfile']['name'];
}
/* ...or... */
?>
Al intentar enviar una imagen me sigue dando el error de "Possible file upload attack"... y no me la mueve a la carpeta que le digo claro. |