Re: File Upload stuck in the midst
| From: | Ankur Verma | Date: | Tue, 13 Feb 2001 08:54:50 +0000 |
| Subject: | Re: File Upload stuck in the midst | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39377@lists.php.net to get a copy of this message | ||
tuirn on the following setting in your php.ini file
register_globals = On
currently it seems to be off in your settings file
hope that helps
regards
Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India
----- Original Message -----
From: "Dhaval Desai" <dhaval_adams@yahoo.com>
To: <php-general@lists.php.net>
Sent: Tuesday, February 13, 2001 2:10 PM
Subject: [PHP] File Upload stuck in the midst
> Hi!
>
> I am facing some problems while uploading files..
> I just copied the code from php.net from the section
> "Handling File Uploads".
>
> My index.php pages has the following code:
>
> <html>
> <head>
> <title>File Uploads</title>
>
> </head>
> <body>
> <FORM ENCTYPE="multipart/form-data"
> ACTION="action.php" METHOD=POST>
> <INPUT TYPE="hidden" name="MAX_FILE_SIZE"
> value="2000">
> Send this file: <INPUT NAME="userfile" TYPE="file">
> <INPUT TYPE="submit" VALUE="Send File">
> </FORM>
>
>
> </body>
> </html>
>
>
>
>
> ACtion.php has the following code:
>
> <?php
> if (is_uploaded_file($userfile)) {
> copy($userfile, "(c:\\)");
> } else {
> echo "Possible file upload attack: filename
> '$userfile'.";
> }
> /* ...or... */
> move_uploaded_file($userfile, "(c:\\)");
> ?>
>
>
> I always get the error: message..
>
> [Possible file upload attack: filename 'none'.]
>
>
> Can anybody tell me what could be the possible reason
> for this.
>
>
> Thanx a lot!
> Dhaval Desai
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net