note 52121 added to function.ftp-put
| From: | rafa dot mmr at gmail dot com | Date: | Thu, 21 Apr 2005 16:10:23 +0000 |
| Subject: | note 52121 added to function.ftp-put | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88356@lists.php.net to get a copy of this message | ||
Respondiendo al compañero anterior, decir que si pones en el formulario la opción
-enctype="multipart/form-data"- el tratamiento del fichero que se postee mediando el
formulario cambia considerablemente. Así, si el formulario tiene este atributo, accedemos al
fichero por $_FILES['nombredelcampodelfichero'] y a todas las propiedades del mismo
mediante $_FILES;
En cambio, si quitamos este atributo, accedemos a las propiedades del fichero por
$_POST['nombredelcampodelfichero'] y trabajamos con él del mismo modo, no tiene por qué
fallar. Salu2
----
Manual Page -- http://www.php.net/manual/en/function.ftp-put.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52121
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52121&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52121&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52121&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52121&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52121&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52121&report=yes
Search -- http://master.php.net/manage/user-notes.php