welcome rafatrock
a little bit of source code may help us to identify the problem
please post your codes
still, here is my script which i used successfully,
<form method="POST" enctype="multipart/form-data" action="<?php $_SERVER['PHP_SELF']; ?>">
<input type="file" name="file" size="20">
<input type="submit" value="Submit" name="submit">
</form>
<?php
if(isset($_POST['submit'])){
$uploaddir = "photo/";
$uploadfile = $uploaddir . $_FILES['file']['name'];
if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)) {
echo "File was successfully uploaded. ";
} else {
echo "Error while uploading file";
}
}
?>
you may need to rename the value $uploaddir variable
Best Regard:
Md. Zakir Hossain (Raju)
www.rubd.net
www.xenex.rubd.net
www.forum.rubd.net