Posted by Kimmo Laine on 02/16/06 14:38
"Shelly" <sheldonlg.news@asap-consult.com> wrote in message
news:cXZIf.17706$Ly6.5634@bignews5.bellsouth.net...
>
> "Zilla" <mail.is.not@an.option> wrote in message
> news:43f44a49$0$15787$14726298@news.sunsite.dk...
>>> move_uploaded_file($_FILES['userfile']['tmp_name'], "path/to/file.ext");
>>
>> Of course it should be:
>>
>> move_uploaded_file($_FILES['filename']['tmp_name'], "path/to/file.ext");
>>
>> Zilla
>
> The problems are that $_FILES['filename']['tmp_name'] comes up empty and
> if I fill it with the right value the it still can't upload because it
> says that the file isn't there,
Then you need to make sure the file does get uploaded! I'd recommend you put
this somewhere in the file and make sure you get 0 in it.
echo "file uploaded status: " . $_FILES['filename']['error'];
0 (zero) means ok, file uploaded with no errors. The other error codes are
explained here: http://fi2.php.net/manual/en/features.file-upload.errors.php
--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviφ
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)
[Back to original message]
|