سلام به همگی دوستان

یه آپلودر عکس دارم به مشکل خورده عکس رو میتونی انتخاب کنی و اپلود میزنی اما فایل اپلود نمیشه ممنون میشم یه نگاه بهش بندازین


کد PHP:
[PHP]<?php
session_start
();
?>
<html dir="rtl">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="fa">
<title>قرار دادن عکس</title>
<style>

</style>
<style type="text/css" >
body{
    font-family:Tahoma, Geneva, sans-serif;
    font-size:12px;
    direction:rtl;
}
a{
    text-decoration:none;
    color:#06C;
}
a:hover{
    color:#666;
}
.ok {
    display:block;
    padding:4px;
    border:0px #666 solid;
    color:#090;
    width:300px;
}
.error {
    display:block;
    padding:4px;
    border:0px #666 solid;
    color:#C00;
    width:300px;    
}
#upload-process{
    z-index:1000;
    visibility:hidden;
}
.frame{
    width:300px;
    height:100px;
    border:0px;    

#list{

padding: 5px;
    font-family: tahoma;
    font-style: normal;
    padding-bottom: 16px;
    overflow: auto;
            -moz-border-radius: 9px;
    -webkit-border-radius: 9px;
    border-radius: 9px;
        -moz-box-shadow: 3px 3px 4px #909090;
        -webkit-box-shadow: 3px 3px 4px #909090;
        box-shadow: 3px 3px 4px #909090;
}

</style>

</head>

<body style="text-align: center" bgcolor="#F8F7FD">

<div align="center">
    <table border="0" id="list" bgcolor="#EBE9F3">
        <tr>
                                                
                                
    



<script type="text/javascript">
//<![CDATA[
function upload_start(){
      document.getElementById('upload-process').style.visibility = 'visible';
      return true;
}

function upload_end(check_upload){
      var server_response = '';
      if (check_upload == 1){
         server_response = '<span class="ok">عکس شما ذخیره شد!<\/span>';
      }
      else {
         server_response = '<span class="error">انتقال عکس به سرور انجام نشد!<\/span><img src="images/2.jpg">';
      }
      document.getElementById('upload-process').style.visibility = 'hidden';
      document.getElementById('upload-form').innerHTML = server_response;
      return true;   
}
//]]>
</script>
</head>
<body>
<form action="php-ajax-upload.php" method="post" enctype="multipart/form-data" target="upload-target" onsubmit="upload_start();">
<label for="user-file"></label>
<input type="file" id="user-file" name="user-file" />
<input type="hidden" id="idi" name="idi" value='2'>
<input type="submit" value="آپلود عکس" />
</form>
<div id="upload-process"><img src="loading.gif" height="16" width="16" alt="loading" /> در حال پردازش...</div>
<div id="upload-form"></div>
<iframe id="upload-target" name="upload-target" class="frame"></iframe>

            
    

                            </tr>
                        </table>
                        
</div>


</body>

</html>
[/PHP]