Re: $_FILES doesn't work but $_POST works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/31/06, chris smith <dmagick@xxxxxxxxx> wrote:
On 5/31/06, kartikay malhotra <kartikay.malhotra@xxxxxxxxx> wrote:
> 2.  Have you tried simply saving $_POST['userfile'] to a file?
>
>      $save = $_POST['userfile'];
>      $f=fopen($out,'a');
>      copy($save, $out);

Files don't go into $_POST - they go into $_FILES.

Yes, his problem is that the $_FILES is not being set, but
there is some value in $_POST['userfile'].

Kartikay, I was suggesting that $_POST['userfile'] may
contain the file itself, not a filename. What does
$_POST['userfile'] contain? Try var_dump()ing it.

Rabin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux