Re: Re: Upload files

From: Date: Fri, 23 Aug 2002 08:56:14 +0000
Subject: Re: Re: Upload files
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-113778@lists.php.net to get a copy of this message
Good Morning! (for me :-)) I went to http://www.php.net/manual/en/features.file-upload.php Jason I tried the example, but I get message "Possible file upload attack", why? because $HTTP_POST_FILES is empty; now gurus!..Why is empty? PHP 4.1.2/Apache file_uploads = On Be kind please. Thanks in advance! --jp At 10:14 23-08-2002 +0800, Jason Wong wrote:
On Friday 23 August 2002 03:38, Juan Pablo Aqueveque wrote: OK eriol, this is my code!. <HTML><BODY BGCOLOR=FFFFFF>
     <?php
         $uploadDir = '.fotos/';
         if (isset($submit)){
             if ($upload != 'none'){
                 $dest = $uploadDir . $upload_name;
                 if (@copy($upload, $dest)){
                     echo "Successfully uploaded $dest<BR>\n";
                 }
[snip] There's a perfectly good example of doing file uploads in the manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* positron router malfunction */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
________________________________________________________ Juan Pablo Aqueveque <juque@uct.cl> Ingeniero de Sistemas Departamento de Redes y Comunicaciones http://www.drc.uct.cl Universidad Católica de Temuco. Tel:(5645) 205 630 Fax:(5645) 205 628

« previous php.general (#113778) next »