Re: uploading
| From: | rija | Date: | Tue, 05 Nov 2002 21:51:40 +0000 |
| Subject: | Re: uploading | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122872@lists.php.net to get a copy of this message | ||
Either you put references into your variables
$_FILES['userfile']['tmp_name'][0] :
move_uploaded_file($_FILES['userfile']['tmp_name'][0], "\ufiles") ;
or don't put bracket in your variable userfile from your <input form>
like this : <input type=file name=userfile>
----- Original Message -----
From: "Edward Peloke" <epeloke@echoman.com>
To: <php-general@lists.php.net>
Sent: Wednesday, November 06, 2002 7:03 AM
Subject: [PHP] uploading
> I am playing with uploading files (hence the array question). I have a
> simple form:
>
> <form action="upload.php" method="post"
> enctype="multipart/form-data">
> Send these files:<br>
> <input name="userfile[]" type="file"><br>
> <input type="submit" value="Send files">
> </form>
>
> Which calls a php file that just contains this:
> copy($_FILES['userfile']['tmp_name'], "\ufiles\");
>
> This ufiles folder is under my htdocs folder in apache. I have looked
> through the help files in php.net but am just not getting it today. How
do
> I simply upload the file? I tried to move uploaded file function but
can't
> seem to get that to work also....any ideas would be greatly appreciated!
>
> Thanks,
> Eddie
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>