Re: Re: [PHP-WIN] Problem with file upload!!
| From: | Palli | Date: | Wed, 19 Feb 2003 12:30:37 +0000 |
| Subject: | Re: Re: [PHP-WIN] Problem with file upload!! | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18603@lists.php.net to get a copy of this message | ||
hi neil
thank u very much. I uploaded it to the root directory and it worked.
I changed my upload dir to
$uploaddir = "frettamyndir\\";
and it worked. I cant tell u how stupid I was not to try this but thanx,
Palli
"Neil Smith" <neil@fresh-toast.uklinux.net> wrote in message
news:5.2.0.9.0.20030219083301.00a873d0@mail.uklinux.net...
> It means it is unable to move the file.
>
> Sarcasm aside, look at the error message.
>
> At 00:22 19/02/2003 +0000, you wrote:
> >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
>
> Whats it telling you ? Its saying unable to move the temporary file upload
> to its final destination. Now that detsination is
> /frettamyndir/fastfood.jpg : You are using windows. Does this look like a
> windows file path to you ?
>
> Me neither, so supply the move_uploaded_file function with a real file
path
> like you would for any filesystem function, because move_uploaded deals
> with your raw file system, not your web server's document. structure.
Clear
> ? Cool.
>
> BTW if you look in the C:\PHP\uploadtemp directory, you will be able to
> verify the file uploads taking place, when you see a number of files
> phpXX.tmp created during uploads. They may be deleted by garbage
collection
> in normal operation.
>
> Cheers,
> Neil Smith.
>