Re: $_FILES doesn't work but $_POST works
| From: | Rabin Vincent | Date: | Wed, 31 May 2006 07:11:55 +0000 |
| Subject: | Re: $_FILES doesn't work but $_POST works | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237136@lists.php.net to get a copy of this message | ||
On 5/31/06, kartikay malhotra <kartikay.malhotra@gmail.com> wrote:
However, with Mbuni MMS Gateway (which provides HTTP POST), the above condition in if loop isn't satisfied. I think $_FILES isn't working. However the following code works: <?php $in='/usr/share/wallpapers/alien-night.jpg'; $out='/tmp/alien.jpg'; if(isset($_POST['userfile'])/* || $_FILES['userfile']['size'] > 0*/ ) { $f=fopen($out,'a'); echo "HELOOOOOOOOOOOOOOOOOOOO"; copy($in, $out); } ?> This implies, $_POST works, and a file has been uploaded. I however, do not know how to access itHave you tried simply saving $_POST['userfile'] to a file? Rabin