can't upload file on server
<p>I am trying use this example <a href="http://www.sajithmr.me/jrecorder/example2.html" rel="nofollow">http://www.sajithmr.me/jrecorder/example2.html</a> for recording audio and send it to my localhost server, but I have issue here. My code describe below</p>

<pre><code>&lt;script&gt;

   $.jRecorder(

     { 
        host : 'http://localhost/Jrec/html/acceptfile.php?filename=hello.wav',  
        callback_started_recording:     function(){callback_started(); },
        callback_stopped_recording:     function(){callback_stopped(); },
        callback_activityLevel:          function(level){callback_activityLevel(level); },
        callback_activityTime:     function(time){callback_activityTime(time); },
        callback_finished_sending:     function(time){ callback_finished_sending() },
        swf_path : 'jRecorder.swf',

     }
   );
   &lt;/script&gt;
</code></pre>

<p>this my acceptfile.php</p>

<pre><code>      if(!isset($_REQUEST['filename']))
   {
     exit('No file');
   }

   $upload_path = dirname(__FILE__). '/';

   $filename = $_REQUEST['filename'];

   $fp = fopen($upload_path."/".$filename.".wav", "wb");

   fwrite($fp, file_get_contents('php://input'));

   fclose($fp);

   exit('done');
</code></pre>

<p>whalt should I do with $upload_path = dirname(<strong>FILE</strong>). '/;?<br>
when I press send data button the file doesn't upload into following directory ("files"). What is the problem here, Any help will be apriciated </p>
