Re: Problem with file upload!!
| From: | Palli | Date: | Wed, 19 Feb 2003 00:22:47 +0000 |
| Subject: | Re: Problem with file upload!! | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18586@lists.php.net to get a copy of this message | ||
Hello again!
now I get another error;
Warning: move_uploaded_file(/frettamyndir/fastfood.jpg)
[function.move-uploaded-file]: failed to create stream: No such file or
directory in C:\riddarinn\Process.php on line 16
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move
'C:\PHP\uploadtemp\php98.tmp' to '/frettamyndir/fastfood.jpg' in
C:\riddarinn\Process.php on line 16
Can anyone tell me what this means?
thx
Palli
"Matt Hillebrand" <matt@medmarket.com> wrote in message
news:002501c2d794$1541a330$0100a8c0@beast...
You need to write:
<form enctype="multipart/form-data" action="Process.php" method=post>
Matt
|-----Original Message-----
|From: Palli [mailto:pallagust@hotmail.com]
|Sent: Tuesday, February 18, 2003 3:21 PM
|To: php-windows@lists.php.net
|Subject: [PHP-WIN] Problem with file upload!!
|
|
|Hello I'm wondering what is wrong whit my code. I´m trying to
|upload an image but I keep getting this error message??
|
|Notice: Undefined index: NewsPicture in
|C:\riddarinn\Process.php on line 17
|
|This is my code :
|
|<form name="New" action="Process.php" method="post">
|...
|<input type=file name="NewsPicture" size=43>
|<input type=hidden name=MAX_FILE_SIZE value=10240>
|<input type=Submit value=Skrá-frétt>
|...
|</form>
|
|// my process site
|...
|if (move_uploaded_file($_FILES['NewsPicture']['tmp_name'], $udir .
|$_FILES['NewsPicture']['name']))
|...
|
|THX
|Palli
|
|
|
|
|
|--
|PHP Windows Mailing List (http://www.php.net/)
|To unsubscribe, visit: http://www.php.net/unsub.php
|
|
|