Re: [PHP] upload file problem
- From: jignesh.thummar@xxxxxxxxx ("Jignesh Thummar")
- Date: Thu, 31 Jul 2008 15:40:42 +0100
it's writable.
On Thu, Jul 31, 2008 at 3:37 PM, Eric Butera <eric.butera@xxxxxxxxx> wrote:
On Thu, Jul 31, 2008 at 10:18 AM, Jignesh Thummar.
<jignesh.thummar@xxxxxxxxx> wrote:
I'm trying to upload the file. It's showing me successfully uploaded.
But it's not able to move from temp directory to my defined directory
my code:
if (is_uploaded_file($_FILES['myfile']['tmp_name'])) {
move_uploaded_file($_FILES['myfile']['tmp_name'], $myfilename);
echo "File ". $_FILES['myfile']['name'] ." uploaded successfully.\n";
} else {
echo "File uploading error";
}
Thanks in advance.
-Jignesh
Is the directory you're moving to writable by your web server? If you
don't know, try making a separate script that tries
var_dump(is_writable('/path/to/uploads'));
- References:
- upload file problem
- From: "Jignesh Thummar"
- Re: [PHP] upload file problem
- From: "Eric Butera"
- upload file problem
- Prev by Date: Re: [PHP] upload file problem
- Next by Date: Re: [PHP] Creating new site
- Previous by thread: Re: [PHP] upload file problem
- Next by thread: Re: [PHP] upload file problem
- Index(es):
Relevant Pages
|